This commit is contained in:
hztianxiang 2018-10-29 20:39:59 +08:00
parent a5e1f30c6b
commit c5fff759ee
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ module.exports = class HotModuleReplacementPlugin {
};
for (const key of Object.keys(records.chunkHashs)) {
let chunkId;
if(compiler.options.optimization.namedChunks){
if (compiler.options.optimization.namedChunks) {
chunkId = key;
} else {
chunkId = isNaN(+key) ? key : +key;