ensure the CLI in watch mode keeps running when on error (#4693)
This commit is contained in:
parent
418d223837
commit
70ca673d96
1 changed files with 7 additions and 0 deletions
|
|
@ -705,6 +705,13 @@ async function build() {
|
|||
let end = process.hrtime.bigint()
|
||||
console.error('Done in', (end - start) / BigInt(1e6) + 'ms.')
|
||||
})
|
||||
.catch((err) => {
|
||||
if (err.name === 'CssSyntaxError') {
|
||||
console.error(err.toString())
|
||||
} else {
|
||||
console.error(err)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
let css = input
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue