diff --git a/index.js b/index.js index 756f641..10acd38 100644 --- a/index.js +++ b/index.js @@ -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); }); };