We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9959484 commit 0db3c2bCopy full SHA for 0db3c2b
index.js
@@ -131,7 +131,7 @@ class HtmlWebpackPlugin {
131
* to support watch mode for third party plugins like the clean-webpack-plugin or the compression plugin
132
* @type {PreviousEmittedAssets}
133
*/
134
- let previousEmittedAssets = [];
+ const previousEmittedAssets = [];
135
136
// Inject child compiler plugin
137
const childCompilerPlugin = new CachedChildCompilation(compiler);
@@ -1028,7 +1028,7 @@ class HtmlWebpackPlugin {
1028
});
1029
return callback();
1030
} else {
1031
- previousEmittedAssets = [];
+ previousEmittedAssets.length = 0;
1032
assetJson.value = newAssetJson;
1033
}
1034
0 commit comments