File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 23
23
// https://github.com/ampedandwired/html-webpack-plugin#events
24
24
25
25
'use strict'
26
+ const HtmlWebpackPlugin = require ( 'html-webpack-plugin' )
26
27
const escapeStringRegexp = require ( 'escape-string-regexp' )
27
28
28
29
class InterpolateHtmlPlugin {
@@ -32,7 +33,7 @@ class InterpolateHtmlPlugin {
32
33
33
34
apply ( compiler ) {
34
35
compiler . hooks . compilation . tap ( 'InterpolateHtmlPlugin' , compilation => {
35
- compilation . hooks . htmlWebpackPluginBeforeHtmlProcessing . tap (
36
+ HtmlWebpackPlugin . getHooks ( compilation ) . afterTemplateExecution . tap (
36
37
'InterpolateHtmlPlugin' ,
37
38
data => {
38
39
// Run HTML through a series of user-specified string replacements.
Original file line number Diff line number Diff line change 33
33
"escape-string-regexp" : " ^1.0.5"
34
34
},
35
35
"peerDependencies" : {
36
- "html-webpack-plugin" : " ^3.2.0 "
36
+ "html-webpack-plugin" : " >=4.5.1 "
37
37
}
38
38
}
You can’t perform that action at this time.
0 commit comments