ensure the CLI in watch mode keeps running when on error (#4693)

This commit is contained in:
Robin Malfait 2021-06-18 14:46:00 +02:00 • committed by GitHub
parent 418d223837
commit 70ca673d96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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