diff --git a/packages/cli/src/utils/generate.js b/packages/cli/src/utils/generate.js index 2b97726ce0..568e6f1896 100644 --- a/packages/cli/src/utils/generate.js +++ b/packages/cli/src/utils/generate.js @@ -109,6 +109,7 @@ export async function ensureBuild (cmd) { const changed = compareSnapshots(previousBuild.snapshot, currentBuild.snapshot) if (!changed) { consola.success('Skipping webpack build as no changes detected') + await nuxt.close() return } else { consola.info(`Doing webpack rebuild because ${changed} modified`)