From f34edcd7d19bf7b6300756a20f6e2c59b4f1551a Mon Sep 17 00:00:00 2001 From: Arpad Csanyi Date: Mon, 1 Aug 2016 21:37:03 +0200 Subject: [PATCH] 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 --- webpack.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 594e06c1..1cf38064 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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', @@ -48,4 +49,4 @@ module.exports = { ) ] -} \ No newline at end of file +}