fix: update path of webpack bundles (#46180)

With this both the bundles and their chunks will have the correct path
names
This commit is contained in:
Oliver Eyton-Williams
2022-05-27 19:36:05 +02:00
committed by GitHub
parent 3679d36169
commit b60cffd190
+1 -1
View File
@@ -21,7 +21,7 @@ module.exports = (env = {}) => {
filename: chunkData => {
// construct and output the filename here, so the client can use the
// json to find the file.
const filename = `${chunkData.chunk.name}.${chunkData.chunk.contentHash.javascript}`;
const filename = `${chunkData.chunk.name}-${chunkData.chunk.contentHash.javascript}`;
writeFileSync(
path.join(configPath, `${chunkData.chunk.name}.json`),
`{"filename": "${filename}"}`