Skip to content

Commit

Permalink
set path for webpack-hot-middleware
Browse files Browse the repository at this point in the history
to make it work in electron app
  • Loading branch information
egoist committed Feb 3, 2017
1 parent a57c9f6 commit 055b51e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/vue-build
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ if (production) {
} else {
if (!options.watch) {
webpackConfig.plugins.push(new webpack.HotModuleReplacementPlugin())
webpackConfig.entry.client.unshift(require.resolve('webpack-hot-middleware/client') + '?reload=true')
webpackConfig.entry.client.unshift(require.resolve('webpack-hot-middleware/client') + `?reload=true&path=http://${options.host}:${options.port}/__webpack_hmr`)
}
webpackConfig.devtool = 'eval-source-map'
webpackConfig.plugins.push(
Expand Down

0 comments on commit 055b51e

Please sign in to comment.