commit: bc6b5d94c60088dd6a13cdc9beba466f64e65de1
parent d9dbd7064b13b4bce8aa90c7691b7a2b2f97a73e
Author: tusooa <tusooa@kazv.moe>
Date: Tue, 13 Dec 2022 13:13:46 +0000
Merge branch 'handle-webpack-build-error' into 'develop'
Throw non-zero exit code if webpack build fails
See merge request pleroma/pleroma-fe!1695
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/build/build.js b/build/build.js
@@ -36,4 +36,8 @@ webpack(webpackConfig, function (err, stats) {
chunks: false,
chunkModules: false
}) + '\n')
+ if (stats.hasErrors()) {
+ console.error('See above for errors.')
+ process.exit(1)
+ }
})