aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/build/client.sh
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-06 10:26:39 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-08-06 10:58:36 +0200
commita3b5e78af3696f807e54bc4b11e559bbd9b6ba1e (patch)
tree037c42e9a7a637fba9be5d52800afba402eb9df2 /scripts/build/client.sh
parent5c145fe7ab6c1e975f5d43391316e8db9ca31974 (diff)
downloadPeerTube-a3b5e78af3696f807e54bc4b11e559bbd9b6ba1e.tar.gz
PeerTube-a3b5e78af3696f807e54bc4b11e559bbd9b6ba1e.tar.zst
PeerTube-a3b5e78af3696f807e54bc4b11e559bbd9b6ba1e.zip
Analyze embed too with bundlewatch
Diffstat (limited to 'scripts/build/client.sh')
-rwxr-xr-xscripts/build/client.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/build/client.sh b/scripts/build/client.sh
index 254ca4364..878de60df 100755
--- a/scripts/build/client.sh
+++ b/scripts/build/client.sh
@@ -33,6 +33,7 @@ pre_build_hook
33additionalParams="" 33additionalParams=""
34if [ ! -z ${1+x} ] && [ "$1" == "--analyze-bundle" ]; then 34if [ ! -z ${1+x} ] && [ "$1" == "--analyze-bundle" ]; then
35 additionalParams="--namedChunks=true --outputHashing=none" 35 additionalParams="--namedChunks=true --outputHashing=none"
36 export ANALYZE_BUNDLE=true
36fi 37fi
37 38
38 39
@@ -154,9 +155,7 @@ if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); t
154 done 155 done
155fi 156fi
156 157
157if [ ! -z ${1+x} ] || [ "$1" == "--analyze-bundle" ]; then 158cd ../ && npm run build:embed && cd client/
158 cd ../ && npm run build:embed && cd client/
159fi
160 159
161# Copy runtime locales 160# Copy runtime locales
162cp -r "./src/locale" "./dist/locale" 161cp -r "./src/locale" "./dist/locale"