Skip to content

Commit

Permalink
fix(dev-server): dev server behind NAT network (#868)
Browse files Browse the repository at this point in the history
(#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.
  • Loading branch information
antiphoton authored and yyx990803 committed Mar 1, 2018
1 parent e4ff22a commit bbc931c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vue/cli-service/lib/commands/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module.exports = (api, options) => {
if (!isProduction) {
const devClients = [
// dev server client
require.resolve(`webpack-dev-server/client`) + `?${urls.localUrlForBrowser}`,
require.resolve(`webpack-dev-server/client`),
// hmr client
require.resolve(projectDevServerOptions.hotOnly
? 'webpack/hot/only-dev-server'
Expand Down

0 comments on commit bbc931c

Please sign in to comment.