Skip to content

Commit 3e9d7e3

Browse files
committed
fix(cli): ensure nuxt instance is closed when skipping build
[release] resolves nuxt/framework#494
1 parent 6f94b1f commit 3e9d7e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/cli/src/utils/generate.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export async function ensureBuild (cmd) {
109109
const changed = compareSnapshots(previousBuild.snapshot, currentBuild.snapshot)
110110
if (!changed) {
111111
consola.success('Skipping webpack build as no changes detected')
112+
await nuxt.close()
112113
return
113114
} else {
114115
consola.info(`Doing webpack rebuild because ${changed} modified`)

0 commit comments

Comments
 (0)