fail on webpack exceptions

This commit is contained in:
Eugene
2026-05-04 17:38:26 +02:00
parent 1f53f00f7e
commit 5aa2ea9294
+7 -2
View File
@@ -8,9 +8,10 @@ const configs = [
'../app/webpack.config.main.mjs',
'../app/webpack.config.mjs',
...vars.allPackages.map(x => `../${x}/webpack.config.mjs`),
]
];
;(async () => {
(async () => {
try {
for (const c of configs) {
log.info('build', c)
const stats = await promisify(webpack)((await import(c)).default())
@@ -19,4 +20,8 @@ const configs = [
process.exit(1)
}
}
} catch (error) {
log.error('build', String(error))
process.exit(1)
}
})()