fix: fix HMR hostname when devServe.host is set (#2230)

This commit is contained in:
悔惜晟
2018-09-10 21:24:35 +08:00
committed by Haoqun Jiang
parent f0bddd84b3
commit 2f19904183
@@ -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)