diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-05-31 20:03:28 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-06-10 14:01:49 +0200 |
commit | e6dfa58689e88633db8304a8541a75edd893c645 (patch) | |
tree | b8a06bf38370328e753940a8c2ae85d6d03413a5 /scripts/build/client.sh | |
parent | b84d4c809f0b1c4b3f2029f56b81dbca37364f36 (diff) | |
download | PeerTube-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-x | scripts/build/client.sh | 4 |
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 |
149 | fi | 149 | fi |
150 | 150 | ||
151 | if [ "$1" != "--analyze" ]; then | ||
152 | rm "./dist/en-US/stats-es2015.json" | ||
153 | fi | ||
154 | |||
151 | cd ../ && npm run build:embed && cd client/ | 155 | cd ../ && npm run build:embed && cd client/ |
152 | 156 | ||
153 | # Copy runtime locales | 157 | # Copy runtime locales |