Recursively build when I inject a customed plugin
kaiwenxiao opened this issue · 4 comments
kaiwenxiao commented
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
and the result looks like this, recursively:
how to stop the loop, and correctly trigge my plugin? A Lots of Thanks!
jantimon commented
hey :)
the .plugin
api is outdated - you will have to use the .tap
api
kaiwenxiao commented
Okay, when using compilation.tap()
, it will occur TypeError: compilation.tap is not a function
jantimon commented
In that case you are somehow using webpack 4
alexander-akait commented
Answered