Here is my webpack config :
var path = require(\'path\'); var webpack = require(\'webpack\') var HtmlWebpackPlugin = require(\'html-webpack-plugin\') var fs = re
I have same problem and below config work for me.
I used to have absolute path and when change it to relative, it work.
new HtmlWebpackPlugin({ inject: true, template:'public/index.html', // relative to project root filename:'index.html' // relative to build folder })