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 =
|
const exports =
|
||||||
codeGenResult.data && codeGenResult.data.get("css-exports");
|
codeGenResult.data && codeGenResult.data.get("css-exports");
|
||||||
const moduleId = chunkGraph.getModuleId(module) + "";
|
const moduleId = chunkGraph.getModuleId(module).replace(/\\/, "/") + "";
|
||||||
metaData.push(
|
metaData.push(
|
||||||
`${
|
`${
|
||||||
exports
|
exports
|
||||||
|
|
@ -456,6 +456,7 @@ class CssModulesPlugin {
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
console.log(chunk.id);
|
||||||
source.add(
|
source.add(
|
||||||
`head{--webpack-${escapeCss(
|
`head{--webpack-${escapeCss(
|
||||||
(uniqueName ? uniqueName + "-" : "") + chunk.id,
|
(uniqueName ? uniqueName + "-" : "") + chunk.id,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue