Merge branch 'handle-webpack-build-error' into 'develop'

Throw non-zero exit code if webpack build fails

See merge request pleroma/pleroma-fe!1695
This commit is contained in:
tusooa 2022-12-13 13:13:46 +00:00
commit bc6b5d94c6

View File

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