mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-01 09:57:14 +00:00
fix(nuxi): display log when restarting nuxt (#22500)
This commit is contained in:
parent
14bf2b02f9
commit
48f0eade12
@ -86,9 +86,7 @@ export default defineNuxtCommand({
|
|||||||
await currentNuxt.close().catch(() => {})
|
await currentNuxt.close().catch(() => {})
|
||||||
await watcher.close().catch(() => {})
|
await watcher.close().catch(() => {})
|
||||||
await distWatcher.close().catch(() => {})
|
await distWatcher.close().catch(() => {})
|
||||||
if (reason) {
|
consola.info(`${reason ? reason + '. ' : ''}Restarting nuxt...`)
|
||||||
consola.info(`${reason ? reason + '. ' : ''}Restarting nuxt...`)
|
|
||||||
}
|
|
||||||
process.send({ type: 'nuxt:restart' })
|
process.send({ type: 'nuxt:restart' })
|
||||||
} else {
|
} else {
|
||||||
await load(true, reason)
|
await load(true, reason)
|
||||||
|
Loading…
Reference in New Issue
Block a user