From 3e9d7e3e7cbdeb707e3aedc1bea7b24479361cba Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 9 Sep 2021 09:53:06 +0200 Subject: [PATCH] fix(cli): ensure nuxt instance is closed when skipping build [release] resolves nuxt/framework#494 --- packages/cli/src/utils/generate.js | 1 + 1 file changed, 1 insertion(+) 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`)