Closed CalMlynarczyk closed 4 years ago
After more investigation, I've determined this issue is not caused by this plugin. I needed to set inject: false
in the html-webpack-plugin
configuration and manually add the tag template variables in the templates.
Say I want to tweak the placement of the injected script tags in my HTML template rather than having it always go to the end of the
head
element. I configure an entry point to inject into thehead
tag as documented:Then I add the
html-webpack-plugin
tags property like so:However, the output HTML file includes duplicates of that script tag, whereas I would expect it to only show up once. It still adds a script element at the end of the
head
element.Expected
Actual