Skip to content

Commit 055b51e

Browse files
committed
set path for webpack-hot-middleware
to make it work in electron app
1 parent a57c9f6 commit 055b51e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/vue-build

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ if (production) {
269269
} else {
270270
if (!options.watch) {
271271
webpackConfig.plugins.push(new webpack.HotModuleReplacementPlugin())
272-
webpackConfig.entry.client.unshift(require.resolve('webpack-hot-middleware/client') + '?reload=true')
272+
webpackConfig.entry.client.unshift(require.resolve('webpack-hot-middleware/client') + `?reload=true&path=http://${options.host}:${options.port}/__webpack_hmr`)
273273
}
274274
webpackConfig.devtool = 'eval-source-map'
275275
webpackConfig.plugins.push(

0 commit comments

Comments
 (0)