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:
Arpad Csanyi
2016-08-01 21:37:03 +02:00
parent d591927840
commit f34edcd7d1

View File

@@ -5,6 +5,7 @@ module.exports = {
entry: ['es6-shim', 'zone.js', 'reflect-metadata', './src/boot.ts'], entry: ['es6-shim', 'zone.js', 'reflect-metadata', './src/boot.ts'],
output: { output: {
path: __dirname + "/build", path: __dirname + "/build",
publicPath: "/build/",
filename: "uhk.js" filename: "uhk.js"
}, },
devtool: 'source-map', devtool: 'source-map',