Skip to content

Commit f3f45df

Browse files
authored
fix: windows path for experiments.css (#2049)
1 parent 6968b38 commit f3f45df

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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)