We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 0ebcd17 commit 1422664Copy full SHA for 1422664
index.js
@@ -97,7 +97,8 @@ class HtmlWebpackPlugin {
97
// Clear the cache once a new HtmlWebpackPlugin is added
98
childCompiler.clearCache(compiler);
99
100
- compiler.hooks.compilation.tap('HtmlWebpackPlugin', (compilation) => {
+ // Clear the cache if the child compiler is outdated
101
+ compiler.hooks.thisCompilation.tap('HtmlWebpackPlugin', (compilation) => {
102
if (childCompiler.hasOutDatedTemplateCache(compilation)) {
103
104
}
0 commit comments