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.
2 parents 14aabb3 + ecd269c commit 396e7ffCopy full SHA for 396e7ff
plugin.js
@@ -357,7 +357,10 @@ class CspHtmlWebpackPlugin {
357
'CspHtmlWebpackPlugin',
358
this.processCsp.bind(this)
359
);
360
- } else {
+ } else if (
361
+ compilation.hooks.htmlWebpackPluginBeforeHtmlGeneration &&
362
+ compilation.hooks.htmlWebpackPluginAfterHtmlProcessing
363
+ ) {
364
// HTMLWebpackPlugin@3
365
compilation.hooks.htmlWebpackPluginBeforeHtmlGeneration.tapAsync(
366
0 commit comments