Add publicPath to webpack config to fix dev-server's livereload.
The issue was that the webpack-dev-server seemed to serve the old files instead of the newly bundled ones. The explanation of the solution can be found here: https://github.com/webpack/webpack-dev-server/issues/24#issuecomment-44366325
This commit is contained in:
@@ -5,6 +5,7 @@ module.exports = {
|
||||
entry: ['es6-shim', 'zone.js', 'reflect-metadata', './src/boot.ts'],
|
||||
output: {
|
||||
path: __dirname + "/build",
|
||||
publicPath: "/build/",
|
||||
filename: "uhk.js"
|
||||
},
|
||||
devtool: 'source-map',
|
||||
|
||||
Reference in New Issue
Block a user