This commit is contained in:
Pooya Parsa 2017-06-10 23:12:13 +04:30
parent affcb9d58e
commit c08801cf53

View File

@ -439,7 +439,7 @@ function createWebpackMiddleware () {
if (!stats.hasErrors() && !stats.hasWarnings()) {
// We don't use os.host() here because browsers have special behaviour with localhost
// For example chrome allows Geolocation api only to https or localhost origins
let _host = host==='0.0.0.0' ? 'localhost' : host
let _host = host === '0.0.0.0' ? 'localhost' : host
console.log(`> Open http://${_host}:${port}\n`) // eslint-disable-line no-console
}
})