https://github.com/sevenoutman/html-webpack-plugin-template-parameter-repro
https://github.com/sevenoutman/html-webpack-plugin-template-parameter-repro
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sevenoutman/html-webpack-plugin-template-parameter-repro
- Owner: SevenOutman
- Created: 2022-05-21T07:15:16.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-20T22:27:01.000Z (over 3 years ago)
- Last Synced: 2025-01-08T11:23:04.758Z (over 1 year ago)
- Language: JavaScript
- Size: 68.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `html-webpack-plugin` issue demo
This repository aims to demonstrate [an issue](https://github.com/jantimon/html-webpack-plugin/issues/1752) within `html-webpack-plugin` 5.5.0.
## TL;DR
Run
npm start
Then see the incorrect document title of the opened page.
## The problem
When `output.publicPath` is specified in webpack configuration and running webpack dev server, the `html-webpack-plugin` won't replace template parameter placeholders in the template file.
## To reproduce
- Have a HTML template with this `<%= foo %>` placeholder in `` tag
- Configure `html-webpack-plugin` configured to use this template and provide `templateParameter` values
- Specify `output.publicPath` option of webpack config
- Run `webpack serve` and inspect the output html in browser devtools