mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
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:
committed by
GitHub
parent
3679d36169
commit
b60cffd190
@@ -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}"}`
|
||||
|
||||
Reference in New Issue
Block a user