1
1
mirror of https://github.com/Eugeny/tabby.git synced 2025-01-03 08:04:02 +03:00

throw build errors in CI

This commit is contained in:
Eugene Pankov 2021-08-17 14:30:00 +02:00
parent cf6558ec6a
commit e34772b8b8
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -13,6 +13,10 @@ const configs = [
;(async () => {
for (const c of configs) {
log.info('build', c)
await promisify(webpack)(require(c))
const stats = await promisify(webpack)(require(c))
console.log(stats.toString({ colors: true }))
if (stats.hasErrors()) {
process.exit(1)
}
}
})()