mirror of
https://github.com/youzan/vant.git
synced 2025-10-16 16:04:04 +00:00
fix(cli): 错误的直接引入less文件 (#9725)
This commit is contained in:
@@ -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)}
|
||||
|
Reference in New Issue
Block a user