From 05d6694743eb8a3e85687e166b9457b797014f9b Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Fri, 6 May 2016 14:48:58 +0100 Subject: [PATCH] =?UTF-8?q?=E2=88=83=20=E2=88=80=20hot-update.js=20for=20i?= =?UTF-8?q?sHotUpdateCompilation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); };