mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-05-02 10:00:47 -05:00
fix: fix HMR hostname when devServe.host is set (#2230)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user