mirror of
https://github.com/alex8088/electron-vite.git
synced 2025-04-06 04:05:44 +08:00
fix that build script doesn't end after building
This commit is contained in:
parent
f33f67c147
commit
e5a4ff6c4e
@ -131,6 +131,7 @@ cli.command('build [root]', 'build for production').action(async (root: string,
|
||||
|
||||
try {
|
||||
await build(inlineConfig)
|
||||
process.exit(0)
|
||||
} catch (e) {
|
||||
const error = e as Error
|
||||
createLogger(options.logLevel).error(colors.red(`error during build:\n${error.stack}`), { error })
|
||||
|
Loading…
x
Reference in New Issue
Block a user