Skip to content

Commit

Permalink
fix(cli): ensure nuxt instance is closed when skipping build
Browse files Browse the repository at this point in the history
[release]

resolves nuxt/framework#494
  • Loading branch information
pi0 committed Sep 9, 2021
1 parent 6f94b1f commit 3e9d7e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/cli/src/utils/generate.js
Expand Up @@ -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`)
Expand Down

0 comments on commit 3e9d7e3

Please sign in to comment.