mirror of
https://github.com/eugeny/tabby
synced 2025-12-12 02:35:41 +00:00
throw build errors in CI
This commit is contained in:
@@ -13,6 +13,10 @@ const configs = [
|
|||||||
;(async () => {
|
;(async () => {
|
||||||
for (const c of configs) {
|
for (const c of configs) {
|
||||||
log.info('build', c)
|
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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})()
|
})()
|
||||||
|
|||||||
Reference in New Issue
Block a user