jantimon/html-webpack-plugin

Inject bundled JS and CSS to the existing file

jeevasusej opened this issue · 4 comments

Current behaviour 💣

I can copy the template and generate index.html.

Expected behaviour ☀️

I am using Asp.net MVC file. I want to inject bundled JS and CSS to external existing file which is _layout.cshtml.

Is there any configuration to modify this?

I think you can try templateContent option, here is a example

I think you can try templateContent option, here is a example

I have tried this, but hot reloading did not work for me, as it is not working when I change template. Or maybe I was doing something wrong?

There is an example #1754 (comment), feel free to feedback if you need a help