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

Most upvoted comments

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?