Skip to content

Commit 832073e

Browse files
committed
fix: windows path for experiments.css
1 parent 860b660 commit 832073e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

lib/loaders/pitcher.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,14 @@ module.exports.pitch = function (remainingRequest) {
150150
return typeof loader === 'string' ? loader : loader.request
151151
})
152152
.join('!')
153-
return `@import "${this.resourcePath}${
154-
query.lang ? `.${query.lang}` : ''
155-
}${this.resourceQuery}!=!-!${loaderString}!${this.resourcePath + this.resourceQuery}";`
153+
154+
const styleRequest = loaderUtils.stringifyRequest(
155+
this,
156+
`${this.resourcePath}${query.lang ? `.${query.lang}` : ''}${
157+
this.resourceQuery
158+
}!=!-!${loaderString}!${this.resourcePath + this.resourceQuery}`
159+
)
160+
return `@import ${styleRequest};`
156161
}
157162

158163
const cssLoaderIndex = loaders.findIndex(isCSSLoader)

0 commit comments

Comments
 (0)