We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7672c18 commit cf8b6e8Copy full SHA for cf8b6e8
index.js
@@ -18,7 +18,8 @@ module.exports.pitch = function (remainingRequest) {
18
var addStylesShadowPath = loaderUtils.stringifyRequest(this, '!' + path.join(__dirname, 'lib/addStylesShadow.js'))
19
20
var request = loaderUtils.stringifyRequest(this, '!!' + remainingRequest)
21
- var id = JSON.stringify(hash(request + path.relative(__dirname, this.resourcePath)))
+ var relPath = path.relative(__dirname, this.resourcePath).replace(/\\/g, '/')
22
+ var id = JSON.stringify(hash(request + relPath))
23
var options = loaderUtils.getOptions(this) || {}
24
25
// direct css import from js --> direct, or manually call `styles.__inject__(ssrContext)` with `manualInject` option
0 commit comments