html-webpack-plugin: js file is not injected, but css file is injected to the template with 4.0.0-beta.11 version.
new HtmlWebpackPlugin({
filename: `${filePath + chunkName}.html`,
template: `${ item }/${ chunkName }.html`,
chunks: ['common'],
cache: true,
hash:true,
inject: true
});
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 20 (12 by maintainers)
Commits related to this issue
- fix: Fix querystring encoding fix #1355 — committed to jantimon/html-webpack-plugin by jantimon 4 years ago
- fix: Fix querystring encoding fix #1355 — committed to jantimon/html-webpack-plugin by jantimon 4 years ago
- fix: Fix querystring encoding fix #1355 — committed to jantimon/html-webpack-plugin by jantimon 4 years ago
- fix: Fix querystring encoding (#1386) fix #1355 — committed to jantimon/html-webpack-plugin by jantimon 4 years ago
Released as html-webpack-plugin 4.0.4
/js/private_show.js%3F3252aa the ? has been encodeURIComponent to %3F ,so didnot match? maybe you should decodeURIComponent entry first?