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'],
|
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',
|
||||||
@@ -48,4 +49,4 @@ module.exports = {
|
|||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user