Skip to content

Commit 56bc93f

Browse files
h-a-n-afreddy38510
authored andcommitted
fix: windows path for experiments.css (vuejs#2049)
1 parent cd07b1c commit 56bc93f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Diff for: src/pitcher.ts

+7-3
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,13 @@ export const pitch = function () {
8888
return typeof loader === 'string' ? loader : loader.request
8989
})
9090
.join('!')
91-
return `@import "${context.resourcePath}${
92-
query.lang ? `.${query.lang}` : ''
93-
}${context.resourceQuery}!=!-!${loaderString}!${context.resource}";`
91+
const styleRequest = stringifyRequest(
92+
context,
93+
`${context.resourcePath}${query.lang ? `.${query.lang}` : ''}${
94+
context.resourceQuery
95+
}!=!-!${loaderString}!${context.resource}`
96+
)
97+
return `@import ${styleRequest};`
9498
}
9599
const cssLoaderIndex = loaders.findIndex(isCSSLoader)
96100
if (cssLoaderIndex > -1) {

0 commit comments

Comments
 (0)