Skip to content

Commit

Permalink
fix: fix HMR hostname when devServe.host is set (vuejs#2230)
Browse files Browse the repository at this point in the history
  • Loading branch information
huixisheng authored and haoqunjiang committed Sep 10, 2018
1 parent f0bddd8 commit 2f19904
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@vue/cli-service/lib/util/prepareURLs.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ module.exports = function prepareUrls (protocol, host, port, pathname = '/') {
}
} else {
prettyHost = host
lanUrlForConfig = host
lanUrlForTerminal = prettyPrintUrl(lanUrlForConfig)
}
const localUrlForTerminal = prettyPrintUrl(prettyHost)
const localUrlForBrowser = formatUrl(prettyHost)
Expand Down

0 comments on commit 2f19904

Please sign in to comment.