DEV Community

rabbitzzc
rabbitzzc

Posted on

2 2

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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❀ or a friendly comment on this post if you found it helpful!

Okay