修正那反人类的windows路径
parent
20e67d2d4a
commit
3c9238a38e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue