html-webpack-plugin icon indicating copy to clipboard operation
html-webpack-plugin copied to clipboard

feat: injection of custom root element for react/vue/angular

Open robertmain opened this issue 4 years ago • 2 comments

I was previously using this plugin to inject a custom div root element into the generated HTML page.

However, that plugin has not been maintained for several years and no longer works with Webpack 5. I know many others have wished for root element support in the issues, so the time felt right to stick a PR in to implement that.

It is possible to supply a template to the arguments either by string literal, or by location of an HTML file, however that can be a little cumbersome as you then have to keep the HTML file in your repo, when really it doesn't actually need to be at all.

Reviews/comments/thoughts/suggestions welcome.

robertmain avatar Apr 17 '21 03:04 robertmain

This issue had no activity for at least half a year. It's subject to automatic issue closing if there is no activity in the next 15 days.

stale[bot] avatar Apr 16 '22 05:04 stale[bot]

Bump. @jantimon

robertmain avatar Apr 21 '22 16:04 robertmain