diff --git a/lib/compile-vue.js b/lib/compile-vue.js index 35ab386..d00efe9 100644 --- a/lib/compile-vue.js +++ b/lib/compile-vue.js @@ -142,6 +142,7 @@ export function parseJs( let tmp = `style${Date.now()}` fixedStyle += `document.adoptedStyleSheets.push(${tmp})\n` + // 修正那反人类的windows路径 return `import ${tmp} from '${name}' assert { type: 'css' }\n${tmp}.path = '${name.replace( /\\/g, '\\\\' @@ -214,6 +215,7 @@ export function compileVue(file, imports, options = {}, isBuild) { }) CACHE[file].css = scss.join(' ') + // 修正那反人类的windows路径 js += ` let stylesheet = new CSSStyleSheet() stylesheet.path = '${file