How to inject bundled script to existing html?

Author: jeevasusejCreated Jul 6, 2022Updated Jul 6, 2022

I have referred html-webpack-plugin to inject the bundled files.

But, I want to inject the bundled files to existing html file. How can I do that? I didn't find any such an option.

My actual expectation is like, I have asp.net mvc _layout.cshtml. I want to inject the output of bundled js and css files to _layout.cshtml.