aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/build
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build/client.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/build/client.sh b/scripts/build/client.sh
index aec138653..5ecbff28d 100755
--- a/scripts/build/client.sh
+++ b/scripts/build/client.sh
@@ -40,7 +40,7 @@ languages=(
40 40
41cd client 41cd client
42 42
43rm -rf ./dist ./compiled 43rm -rf ./dist
44 44
45# Don't build other languages if --light arg is provided 45# Don't build other languages if --light arg is provided
46if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); then 46if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); then
@@ -49,7 +49,7 @@ if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); t
49 additionalParams="--sourceMap=true" 49 additionalParams="--sourceMap=true"
50 fi 50 fi
51 51
52 npm run ng build -- --prod --output-path "dist/build" $additionalParams 52 node --max_old_space_size=8192 node_modules/.bin/ng build --configuration production --output-path "dist/build" $additionalParams
53 53
54 for key in "${!languages[@]}"; do 54 for key in "${!languages[@]}"; do
55 lang=${languages[$key]} 55 lang=${languages[$key]}
@@ -72,7 +72,8 @@ else
72 export ANALYZE_BUNDLE=true 72 export ANALYZE_BUNDLE=true
73 fi 73 fi
74 74
75 npm run ng build -- --localize=false --output-path "dist/$defaultLanguage/" --deploy-url "/client/$defaultLanguage/" --prod --stats-json $additionalParams 75 node --max_old_space_size=8192 node_modules/.bin/ng build --localize=false --output-path "dist/$defaultLanguage/" \
76 --deploy-url "/client/$defaultLanguage/" --configuration production --stats-json $additionalParams
76fi 77fi
77 78
78cp "./dist/$defaultLanguage/manifest.webmanifest" "./dist/manifest.webmanifest" 79cp "./dist/$defaultLanguage/manifest.webmanifest" "./dist/manifest.webmanifest"