mirror of https://github.com/webpack/webpack.git
fix: windows issue
This commit is contained in:
parent
dfd0be0667
commit
16a1a042b6
|
|
@ -434,7 +434,7 @@ class CssModulesPlugin {
|
|||
}
|
||||
const exports =
|
||||
codeGenResult.data && codeGenResult.data.get("css-exports");
|
||||
const moduleId = chunkGraph.getModuleId(module) + "";
|
||||
const moduleId = chunkGraph.getModuleId(module).replace(/\\/, "/") + "";
|
||||
metaData.push(
|
||||
`${
|
||||
exports
|
||||
|
|
@ -456,6 +456,7 @@ class CssModulesPlugin {
|
|||
throw e;
|
||||
}
|
||||
}
|
||||
console.log(chunk.id);
|
||||
source.add(
|
||||
`head{--webpack-${escapeCss(
|
||||
(uniqueName ? uniqueName + "-" : "") + chunk.id,
|
||||
|
|
|
|||
Loading…
Reference in New Issue