aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/build/client.sh
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-05-31 20:03:28 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-06-10 14:01:49 +0200
commite6dfa58689e88633db8304a8541a75edd893c645 (patch)
treeb8a06bf38370328e753940a8c2ae85d6d03413a5 /scripts/build/client.sh
parentb84d4c809f0b1c4b3f2029f56b81dbca37364f36 (diff)
downloadPeerTube-e6dfa58689e88633db8304a8541a75edd893c645.tar.gz
PeerTube-e6dfa58689e88633db8304a8541a75edd893c645.tar.zst
PeerTube-e6dfa58689e88633db8304a8541a75edd893c645.zip
space optimizations for `node_modules` and client stats removal
- replace sharp with lighter jimp alternative - remove stats in builds fixes #2807
Diffstat (limited to 'scripts/build/client.sh')
-rwxr-xr-xscripts/build/client.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/build/client.sh b/scripts/build/client.sh
index a86404c6f..31b55dbf5 100755
--- a/scripts/build/client.sh
+++ b/scripts/build/client.sh
@@ -148,6 +148,10 @@ if [ -z ${1+x} ] || [ "$1" != "--light" ]; then
148 done 148 done
149fi 149fi
150 150
151if [ "$1" != "--analyze" ]; then
152 rm "./dist/en-US/stats-es2015.json"
153fi
154
151cd ../ && npm run build:embed && cd client/ 155cd ../ && npm run build:embed && cd client/
152 156
153# Copy runtime locales 157# Copy runtime locales