mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +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)
|
const changed = compareSnapshots(previousBuild.snapshot, currentBuild.snapshot)
|
||||||
if (!changed) {
|
if (!changed) {
|
||||||
consola.success('Skipping webpack build as no changes detected')
|
consola.success('Skipping webpack build as no changes detected')
|
||||||
|
await nuxt.close()
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
consola.info(`Doing webpack rebuild because ${changed} modified`)
|
consola.info(`Doing webpack rebuild because ${changed} modified`)
|
||||||
|
Loading…
Reference in New Issue
Block a user