aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/build/client.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/client.sh')
-rwxr-xr-xscripts/build/client.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/build/client.sh b/scripts/build/client.sh
index a9eceebf9..75da6765c 100755
--- a/scripts/build/client.sh
+++ b/scripts/build/client.sh
@@ -30,15 +30,21 @@ rm -rf ./dist ./compiled
30 30
31pre_build_hook 31pre_build_hook
32 32
33additionalParams=""
34if [ ! -z ${1+x} ] && [ "$1" == "--analyze-bundle" ]; then
35 additionalParams="--namedChunks=true --outputHashing=none"
36fi
37
38
33defaultLanguage="en-US" 39defaultLanguage="en-US"
34npm run ng build -- --output-path "dist/$defaultLanguage/" --deploy-url "/client/$defaultLanguage/" --prod --stats-json 40npm run ng build -- --output-path "dist/$defaultLanguage/" --deploy-url "/client/$defaultLanguage/" --prod --stats-json $additionalParams
35mv "./dist/$defaultLanguage/assets" "./dist" 41mv "./dist/$defaultLanguage/assets" "./dist"
36mv "./dist/$defaultLanguage/manifest.webmanifest" "./dist/manifest.webmanifest" 42mv "./dist/$defaultLanguage/manifest.webmanifest" "./dist/manifest.webmanifest"
37 43
38post_build_hook 44post_build_hook
39 45
40# Don't build other languages if --light arg is provided 46# Don't build other languages if --light arg is provided
41if [ -z ${1+x} ] || [ "$1" != "--light" ]; then 47if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); then
42 if [ ! -z ${1+x} ] && [ "$1" == "--light-hu" ]; then 48 if [ ! -z ${1+x} ] && [ "$1" == "--light-hu" ]; then
43 languages=(["hu"]="hu-HU") 49 languages=(["hu"]="hu-HU")
44 elif [ ! -z ${1+x} ] && [ "$1" == "--light-ar" ]; then 50 elif [ ! -z ${1+x} ] && [ "$1" == "--light-ar" ]; then