Skip to content

Commit 02d92a2

Browse files
committed
Use new event from upstream.
This adds support for people using custom templates
1 parent da0d417 commit 02d92a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

addAssetHtmlPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default class AddAssetHtmlPlugin {
2929

3030
const publicPath = resolvePublicPath(compilation, this.filename)
3131

32-
compilation.plugin('html-webpack-plugin-before-html-processing', (htmlPluginData, callback) => {
32+
compilation.plugin('html-webpack-plugin-before-html-generation', (htmlPluginData, callback) => {
3333
htmlPluginData.plugin.addFileToAssets(this.filename, compilation)
3434
.then((filename) => htmlPluginData.assets[this.typeOfAsset].unshift(`${publicPath}${filename}`))
3535
.then(() => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232
"standard": "^6.0.1"
3333
},
3434
"peerDependencies": {
35-
"html-webpack-plugin": "^2.3.0"
35+
"html-webpack-plugin": "^2.10.0"
3636
}
3737
}

0 commit comments

Comments
 (0)