mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
hide OPEN message on test
This commit is contained in:
parent
1ee08ad101
commit
6f718ec24b
@ -127,12 +127,14 @@ export default class Nuxt {
|
||||
}
|
||||
|
||||
const _host = host === '0.0.0.0' ? 'localhost' : host
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(
|
||||
'\n' +
|
||||
if (!this.options.test) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(
|
||||
'\n' +
|
||||
chalk.bgGreen.black(' OPEN ') +
|
||||
chalk.green(` http://${_host}:${port}\n`)
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
// Close server on nuxt close
|
||||
this.hook(
|
||||
|
Loading…
Reference in New Issue
Block a user