Html-webpack-plugin And Webpack 2: No Starting Slash '/'
I have a working webpack 1 project that I want to migrate to webpack 2. It is almost working, my main remaining problem is with html-webpack-plugin: when I use it in webpack 2, the
Solution 1:
Try setting output.publicPath
explicitly:
output : {
filename : 'static/js/bundle.js',
path : paths.appBuild,
publicPath : '/'
}
Post a Comment for "Html-webpack-plugin And Webpack 2: No Starting Slash '/'"