chore(cli): Show config diff only with DEBUG

This commit is contained in:
Pooya Parsa 2021-04-20 14:22:47 +02:00
parent 8ffb15200e
commit ac9c0b044e

View File

@ -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)