Skip to content

Commit

Permalink
fix(request): dev server behind NAT network
Browse files Browse the repository at this point in the history
(vuejs#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 committed Feb 22, 2018
1 parent 92ddd09 commit 2dd2a2b
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 2dd2a2b

Please sign in to comment.