DEV Community

rabbitzzc
rabbitzzc

Posted on

webpack5 compiler.plugin

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
}
Enter fullscreen mode Exit fullscreen mode

What should I do?

Top comments (0)