mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 17:07:22 +00:00
chore(cli): Show config diff only with DEBUG
This commit is contained in:
parent
8ffb15200e
commit
ac9c0b044e
@ -24,6 +24,7 @@ export async function invoke (args) {
|
||||
|
||||
const newNuxt = await loadNuxt({ rootDir, dev: true, ready: false })
|
||||
|
||||
if (process.env.DEBUG) {
|
||||
let configChanges
|
||||
if (currentNuxt) {
|
||||
configChanges = diff(currentNuxt.options, newNuxt.options, [
|
||||
@ -45,6 +46,7 @@ export async function invoke (args) {
|
||||
info('Restarted nuxt due to config changes')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
await currentNuxt.ready()
|
||||
await buildNuxt(currentNuxt)
|
||||
|
Loading…
Reference in New Issue
Block a user