jantimon/html-webpack-plugin

Recursively build when I inject a customed plugin

kaiwenxiao opened this issue · 4 comments

I build an app which using Vuecli 4 and using Webpack 5.x

I have a plugin build my own, which maybe help me for change what html file I would get and alternatively edit it. Look like this
image
image

and the result looks like this, recursively:
image

how to stop the loop, and correctly trigge my plugin? A Lots of Thanks!

hey :)

the .plugin api is outdated - you will have to use the .tap api

Okay, when using compilation.tap(), it will occur TypeError: compilation.tap is not a function

In that case you are somehow using webpack 4

Answered