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
|
const _host = host === '0.0.0.0' ? 'localhost' : host
|
||||||
// eslint-disable-next-line no-console
|
if (!this.options.test) {
|
||||||
console.log(
|
// eslint-disable-next-line no-console
|
||||||
'\n' +
|
console.log(
|
||||||
|
'\n' +
|
||||||
chalk.bgGreen.black(' OPEN ') +
|
chalk.bgGreen.black(' OPEN ') +
|
||||||
chalk.green(` http://${_host}:${port}\n`)
|
chalk.green(` http://${_host}:${port}\n`)
|
||||||
)
|
)
|
||||||
|
}
|
||||||
|
|
||||||
// Close server on nuxt close
|
// Close server on nuxt close
|
||||||
this.hook(
|
this.hook(
|
||||||
|
Loading…
Reference in New Issue
Block a user