After trying nearly everything under the sun, I've opted (temporarily) to have two different index.html files as I was unable to have html-webpack-plugin to inject anything into the html file. For example, from their README, the ability to inject a title did not work:
In case anyone else runs into this issue. You need to essentially exclude index.html from the raw loader so that html-webpack-plugin can do what it needs to do.
After trying nearly everything under the sun, I've opted (temporarily) to have two different
index.html
files as I was unable to havehtml-webpack-plugin
to inject anything into thehtml
file. For example, from their README, the ability to inject atitle
did not work: