Skip to content

Commit bbc931c

Browse files
antiphotonyyx990803
authored andcommittedMar 1, 2018
fix(dev-server): dev server behind NAT network (#868)
(#828)Webpack dev client could not work when server is behind NAT network. Now, the dev client tries to connect to browser's window.location.
1 parent e4ff22a commit bbc931c

File tree

1 file changed

+1
-1
lines changed
  • packages/@vue/cli-service/lib/commands

1 file changed

+1
-1
lines changed
 

‎packages/@vue/cli-service/lib/commands/serve.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module.exports = (api, options) => {
5858
if (!isProduction) {
5959
const devClients = [
6060
// dev server client
61-
require.resolve(`webpack-dev-server/client`) + `?${urls.localUrlForBrowser}`,
61+
require.resolve(`webpack-dev-server/client`),
6262
// hmr client
6363
require.resolve(projectDevServerOptions.hotOnly
6464
? 'webpack/hot/only-dev-server'

0 commit comments

Comments
 (0)