Skip to content

Commit 9320ed6

Browse files
committed
fixed chunkNameFiles with hash
1 parent b9a90d4 commit 9320ed6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/webpack.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ function webpack(context, moduleName, options, callback) {
463463
return a.id - b.id;
464464
});
465465
fileModulesMap[path.basename(chunk.filename)] = modulesArray;
466-
chunkNameMap[chunkId] = path.basename(chunk.filename);
466+
chunkNameMap[chunkId] = path.basename(chunk.filename).replace(HASH_REGEXP, hash);
467467
});
468468
buffer.modulesIncludingDuplicates = sum;
469469
sum = 0;

0 commit comments

Comments
 (0)