aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2017-12-20 09:04:52 +0100
committerChocobozzz <me@florianbigard.com>2017-12-20 09:05:16 +0100
commit24a8e782d8b2adb208d9cfb8659450395e2e2a77 (patch)
tree2f8aaebb8ec06c1c9b82728a9f46efd59163767f /scripts
parent1c6c7699f54e516839058529f11fb2e3d49c4ec0 (diff)
downloadPeerTube-24a8e782d8b2adb208d9cfb8659450395e2e2a77.tar.gz
PeerTube-24a8e782d8b2adb208d9cfb8659450395e2e2a77.tar.zst
PeerTube-24a8e782d8b2adb208d9cfb8659450395e2e2a77.zip
Add bootstrap analyzer and optimize build
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/client.sh2
-rwxr-xr-xscripts/client-report.sh5
2 files changed, 6 insertions, 1 deletions
diff --git a/scripts/build/client.sh b/scripts/build/client.sh
index 8e8da7cbc..e3137df37 100755
--- a/scripts/build/client.sh
+++ b/scripts/build/client.sh
@@ -4,5 +4,5 @@ cd client || exit -1
4 4
5rm -rf ./dist ./compiled 5rm -rf ./dist ./compiled
6 6
7npm run ng build -- --prod 7npm run ng build -- --prod --stats-json
8NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js 8NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js
diff --git a/scripts/client-report.sh b/scripts/client-report.sh
new file mode 100755
index 000000000..586cc2e47
--- /dev/null
+++ b/scripts/client-report.sh
@@ -0,0 +1,5 @@
1#!/bin/bash
2
3cd client || exit -1
4
5npm run webpack-bundle-analyzer ./dist/stats.json