-#!/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