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
1 changed files with 4 additions and 0 deletions

View File

@ -36,4 +36,8 @@ webpack(webpackConfig, function (err, stats) {
chunks: false, chunks: false,
chunkModules: false chunkModules: false
}) + '\n') }) + '\n')
if (stats.hasErrors()) {
console.error('See above for errors.')
process.exit(1)
}
}) })