fix: vitepress build hangs after a successful build #562

pull/606/head
郝晨光 3 years ago
parent 1617a0438f
commit 4169ff83af

@ -24,7 +24,9 @@ if (!command || command === 'dev') {
process.exit(1)
})
} else if (command === 'build') {
build(root, argv).catch((err) => {
build(root, argv).then(() => {
process.exit(0)
}).catch((err) => {
console.error(chalk.red(`build error:\n`), err)
process.exit(1)
})

Loading…
Cancel
Save