We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a97f509 commit 539b34bCopy full SHA for 539b34b
index.js
@@ -87,7 +87,8 @@ class HtmlWebpackPlugin {
87
// Clear the cache once a new HtmlWebpackPlugin is added
88
childCompiler.clearCache(compiler);
89
90
- compiler.hooks.compilation.tap('HtmlWebpackPlugin', (compilation) => {
+ // Clear the cache if the child compiler is outdated
91
+ compiler.hooks.thisCompilation.tap('HtmlWebpackPlugin', (compilation) => {
92
if (childCompiler.hasOutDatedTemplateCache(compilation)) {
93
94
}
0 commit comments