]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/build/client.sh
Resume video on peertube link click in embed
[github/Chocobozzz/PeerTube.git] / scripts / build / client.sh
index 8e8da7cbcab6bf55829c7781e77b056252ca6b7a..305af1e5fd4ece5c320e7539a4cd5ab13857bb93 100755 (executable)
@@ -1,8 +1,10 @@
-#!/bin/bash
+#!/bin/sh
 
-cd client || exit -1
+set -eu
+
+cd client
 
 rm -rf ./dist ./compiled
 
-npm run ng build -- --prod
-NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js
+npm run ng build -- --prod --stats-json
+NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production