Explorar o código

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

Throw non-zero exit code if webpack build fails

See merge request pleroma/pleroma-fe!1695
tusooa %!s(int64=2) %!d(string=hai) anos
pai
achega
bc6b5d94c6
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      build/build.js

+ 4 - 0
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)
+  }
 })