mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
fix(cli): 错误的直接引入less文件 (#9725)
This commit is contained in:
parent
f6c70a9a49
commit
bfc5b16c6d
@ -9,6 +9,7 @@ import {
|
||||
smartOutputFile,
|
||||
normalizePath,
|
||||
} from '../common';
|
||||
import { CSS_LANG } from '../common/css';
|
||||
|
||||
type DemoItem = {
|
||||
name: string;
|
||||
@ -67,7 +68,7 @@ function genCode(components: string[]) {
|
||||
}))
|
||||
.filter((item) => existsSync(item.path));
|
||||
|
||||
return `import './package-style.less';
|
||||
return `import './package-style.${CSS_LANG}';
|
||||
${genImports(demos)}
|
||||
|
||||
${genExports(demos)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user