Skip to content

Commit

Permalink
Add publicPath to webpack config to fix dev-server's livereload.
Browse files Browse the repository at this point in the history
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:
webpack/webpack-dev-server#24 (comment)
  • Loading branch information
csanyiarpad committed Aug 1, 2016
1 parent d591927 commit f34edcd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -48,4 +49,4 @@ module.exports = {
)
]

}
}

0 comments on commit f34edcd

Please sign in to comment.