html-webpack-plugin
html-webpack-plugin copied to clipboard
`templateParameters` not working when running in webpack dev server with `output.publicPath` specified
Current behaviour 💣
When output.publicPath is specified in webpack configuration and running webpack dev server, the html-webpack-plugin won't populate template parameter placeholders in the template file.
Expected behaviour ☀️
Template parameters getting populated correctly.
Reproduction Example 👾
Reproduction can be found in this repository https://github.com/SevenOutman/html-webpack-plugin-template-parameter-repro
Environment 🖥
Node.js v16.13.1
darwin 21.5.0
8.1.2
html-webpack-plugin-template-parameter-repro@ /Users/doma/Developer/html-webpack-plugin-template-parameter-repro
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ ├─┬ @webpack-cli/[email protected]
│ │ └── [email protected] deduped
│ └── [email protected] deduped
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ └── [email protected] deduped
└─┬ [email protected]
└─┬ [email protected]
└── [email protected] deduped
html-webpack-plugin-template-parameter-repro@ /Users/doma/Developer/html-webpack-plugin-template-parameter-repro
└── [email protected]