webpack5 has removed compiler.plugin
.
So I want emit html-webpack-plugin
's html-webpack-plugin-before-html-processing
, But I can't do this:
# it's wrong
compilation.plugin('html-webpack-plugin-before-html-processing', (htmlData, callback) => {
// do something
}
What should I do?
Top comments (0)