diff --git a/index.js b/index.js index da16f67b..26368c7e 100644 --- a/index.js +++ b/index.js @@ -79,7 +79,10 @@ class HtmlWebpackPlugin { } apply (compiler) { - hookIntoCompiler(compiler, this.options, this); + // Wait for configuration preset plugions to apply all configure webpack defaults + compiler.hooks.initialize.tap('HtmlWebpackPlugin', () => { + hookIntoCompiler(compiler, this.options, this); + }); } /**