Skip to content

Commit c7c9239

Browse files
committed
fixes a bug where HMR chunks are not minimized
1 parent 8851427 commit c7c9239

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/HotModuleReplacementPlugin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ HotModuleReplacementPlugin.prototype.apply = function(compiler) {
9393
var filename = hotUpdateChunkFilename
9494
.replace(Template.REGEXP_HASH, records.hash)
9595
.replace(Template.REGEXP_ID, chunkId);
96+
this.additionalChunkAssets.push(filename);
9697
this.assets[filename] = source;
9798
hotUpdateMainContent.c.push(chunkId);
9899
currentChunk.files.push(filename);

0 commit comments

Comments
 (0)