mirror of
https://github.com/youzan/vant.git
synced 2026-01-19 06:04:05 +08:00
fix(cli): failed to import sfc after build
This commit is contained in:
@@ -38,7 +38,7 @@ export function getCssBaseFile() {
|
||||
const IMPORT_STYLE_RE = /import\s+?(?:(?:".*?")|(?:'.*?'))[\s]*?(?:;|$|)/g;
|
||||
|
||||
// "import 'a.less';" => "import 'a.css';"
|
||||
export function replaceCssImport(code: string) {
|
||||
export function replaceCssImportExt(code: string) {
|
||||
return code.replace(IMPORT_STYLE_RE, str =>
|
||||
str.replace(`.${CSS_LANG}`, '.css')
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user