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