∃ ∀ hot-update.js for isHotUpdateCompilation

This commit is contained in:
Thomas Grainger 2016-05-06 14:48:58 +01:00 committed by Jan Nicklas
parent 52f53faf45
commit 05d6694743
1 changed files with 1 additions and 1 deletions

View File

@ -359,7 +359,7 @@ HtmlWebpackPlugin.prototype.filterChunks = function (webpackStatsJson, includedC
};
HtmlWebpackPlugin.prototype.isHotUpdateCompilation = function (assets) {
return assets.js.every(function (name) {
return assets.js.length && assets.js.every(function (name) {
return /\.hot-update\.js$/.test(name);
});
};