PatrickJS/NG6-starter

Unable to add parameters or options to HtmlWebpackPlugin

FarhadG opened this issue · 1 comments

After trying nearly everything under the sun, I've opted (temporarily) to have two different index.html files as I was unable to have html-webpack-plugin to inject anything into the html file. For example, from their README, the ability to inject a title did not work:

  plugins: [
    new HtmlWebpackPlugin({
      title: 'My App',
      filename: 'assets/admin.html'
    })
  ]

In case anyone else runs into this issue. You need to essentially exclude index.html from the raw loader so that html-webpack-plugin can do what it needs to do.

jantimon/html-webpack-plugin#747