diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-20 09:04:52 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-20 09:05:16 +0100 |
commit | 24a8e782d8b2adb208d9cfb8659450395e2e2a77 (patch) | |
tree | 2f8aaebb8ec06c1c9b82728a9f46efd59163767f /scripts | |
parent | 1c6c7699f54e516839058529f11fb2e3d49c4ec0 (diff) | |
download | PeerTube-24a8e782d8b2adb208d9cfb8659450395e2e2a77.tar.gz PeerTube-24a8e782d8b2adb208d9cfb8659450395e2e2a77.tar.zst PeerTube-24a8e782d8b2adb208d9cfb8659450395e2e2a77.zip |
Add bootstrap analyzer and optimize build
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build/client.sh | 2 | ||||
-rwxr-xr-x | scripts/client-report.sh | 5 |
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 | ||
5 | rm -rf ./dist ./compiled | 5 | rm -rf ./dist ./compiled |
6 | 6 | ||
7 | npm run ng build -- --prod | 7 | npm run ng build -- --prod --stats-json |
8 | NODE_ENV=production npm run webpack -- --config webpack/webpack.video-embed.js | 8 | NODE_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 | |||
3 | cd client || exit -1 | ||
4 | |||
5 | npm run webpack-bundle-analyzer ./dist/stats.json | ||