open ~> ready

be more precicse about which ip address is nuxt listening by.
This commit is contained in:
Pooya Parsa 2018-03-19 21:45:20 +03:30
parent 6394639091
commit 85d6c5758a
1 changed files with 2 additions and 3 deletions

View File

@ -126,13 +126,12 @@ export default class Nuxt {
return reject(err)
}
const _host = host === '0.0.0.0' ? 'localhost' : host
if (!this.options.test) {
// eslint-disable-next-line no-console
console.log(
'\n' +
chalk.bgGreen.black(' OPEN ') +
chalk.green(` http://${_host}:${port}\n`)
chalk.bgGreen.black(' READY ') +
chalk.green(` Listening on ${host}:${port}\n`)
)
}