]> 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 3a1532dafc6ed28a39985bae889aeff05df8e209..305af1e5fd4ece5c320e7539a4cd5ab13857bb93 100755 (executable)
@@ -1,7 +1,10 @@
-#!/bin/bash
+#!/bin/sh
 
-cd client || exit -1
+set -eu
 
-rm -rf ./compiled ./dist
+cd client
 
-npm run webpack -- --config config/webpack.prod.js  --progress --profile --bail
+rm -rf ./dist ./compiled
+
+npm run ng build -- --prod --stats-json
+NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js --mode production