Merge branch '2.x' into dev

This commit is contained in:
chenjiahan
2020-12-03 17:19:17 +08:00
7 changed files with 39 additions and 5 deletions
+1 -1
View File
@@ -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')
);