aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/build
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build/client.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/build/client.sh b/scripts/build/client.sh
index 878de60df..644a0807f 100755
--- a/scripts/build/client.sh
+++ b/scripts/build/client.sh
@@ -36,6 +36,10 @@ if [ ! -z ${1+x} ] && [ "$1" == "--analyze-bundle" ]; then
36 export ANALYZE_BUNDLE=true 36 export ANALYZE_BUNDLE=true
37fi 37fi
38 38
39if [ ! -z ${1+x} ] && [ "$1" == "--i18n" ]; then
40 additionalParams="--configuration=i18n"
41 export ANALYZE_BUNDLE=true
42fi
39 43
40defaultLanguage="en-US" 44defaultLanguage="en-US"
41npm run ng build -- --output-path "dist/$defaultLanguage/" --deploy-url "/client/$defaultLanguage/" --prod --stats-json $additionalParams 45npm run ng build -- --output-path "dist/$defaultLanguage/" --deploy-url "/client/$defaultLanguage/" --prod --stats-json $additionalParams
@@ -45,7 +49,7 @@ mv "./dist/$defaultLanguage/manifest.webmanifest" "./dist/manifest.webmanifest"
45post_build_hook 49post_build_hook
46 50
47# Don't build other languages if --light arg is provided 51# Don't build other languages if --light arg is provided
48if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); then 52if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ] && [ "$1" != "--i18n" ]); then
49 if [ ! -z ${1+x} ] && [ "$1" == "--light-hu" ]; then 53 if [ ! -z ${1+x} ] && [ "$1" == "--light-hu" ]; then
50 languages=(["hu"]="hu-HU") 54 languages=(["hu"]="hu-HU")
51 elif [ ! -z ${1+x} ] && [ "$1" == "--light-ar" ]; then 55 elif [ ! -z ${1+x} ] && [ "$1" == "--light-ar" ]; then