How to add an new asset wich will be take by HtmlWebpackPlugin #18339
Unanswered
pierreduot
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Which version of |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to develop a Webpack5 plugin which make change in assets and can add new assets.
To add new asset, I'm using
compilation.emitAsset()
.New assets are correctly created (I can show new JS files) but HtmlWebpackPlugin which is in the list of plugins doesn't push them into the html file.
How can I create new assets which will be treated by HtmlWebpackPlugin ?
Thanks and regards
Beta Was this translation helpful? Give feedback.
All reactions