Type 'HtmlWebpackPartialsPlugin' is not assignable to type '((this: Compiler, compiler: Compiler) => void) | WebpackPluginInstance'.
Property 'apply' is missing in type 'HtmlWebpackPartialsPlugin' but required in type 'WebpackPluginInstance'.ts(2322)
Fix type error below.