mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
fix(cli): ensure nuxt instance is closed when skipping build
[release] resolves nuxt/framework#494
This commit is contained in:
parent
6f94b1f9d7
commit
3e9d7e3e7c
@ -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`)
|
||||
|
Loading…
Reference in New Issue
Block a user