diff options
Diffstat (limited to 'scripts/build/client.sh')
-rwxr-xr-x | scripts/build/client.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/build/client.sh b/scripts/build/client.sh index f4f9b1352..d5b83f239 100755 --- a/scripts/build/client.sh +++ b/scripts/build/client.sh | |||
@@ -36,6 +36,7 @@ languages=( | |||
36 | ["de"]="de-DE" | 36 | ["de"]="de-DE" |
37 | ["it"]="it-IT" | 37 | ["it"]="it-IT" |
38 | ["sq"]="sq" | 38 | ["sq"]="sq" |
39 | ["tok"]="tok" | ||
39 | ["nn"]="nn" | 40 | ["nn"]="nn" |
40 | ["nb"]="nb-NO" | 41 | ["nb"]="nb-NO" |
41 | ["kab"]="kab" | 42 | ["kab"]="kab" |
@@ -49,7 +50,7 @@ rm -rf ./dist | |||
49 | if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); then | 50 | if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); then |
50 | additionalParams="" | 51 | additionalParams="" |
51 | if [ ! -z ${1+x} ] && [ "$1" == "--source-map" ]; then | 52 | if [ ! -z ${1+x} ] && [ "$1" == "--source-map" ]; then |
52 | additionalParams="--sourceMap=true" | 53 | additionalParams="--source-map=true" |
53 | fi | 54 | fi |
54 | 55 | ||
55 | node --max_old_space_size=8192 node_modules/.bin/ng build --configuration production --output-path "dist/build" $additionalParams | 56 | node --max_old_space_size=8192 node_modules/.bin/ng build --configuration production --output-path "dist/build" $additionalParams |
@@ -71,14 +72,14 @@ if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); t | |||
71 | else | 72 | else |
72 | additionalParams="" | 73 | additionalParams="" |
73 | if [ ! -z ${1+x} ] && [ "$1" == "--analyze-bundle" ]; then | 74 | if [ ! -z ${1+x} ] && [ "$1" == "--analyze-bundle" ]; then |
74 | additionalParams="--namedChunks=true --outputHashing=none" | 75 | additionalParams="--named-chunks=true --output-hashing=none" |
75 | 76 | ||
76 | # For webpack | 77 | # For webpack |
77 | export ANALYZE_BUNDLE=true | 78 | export ANALYZE_BUNDLE=true |
78 | fi | 79 | fi |
79 | 80 | ||
80 | node --max_old_space_size=8192 node_modules/.bin/ng build --localize=false --output-path "dist/$defaultLanguage/" \ | 81 | node --max_old_space_size=8192 node_modules/.bin/ng build --localize=false --output-path "dist/$defaultLanguage/" \ |
81 | --deploy-url "/client/$defaultLanguage/" --configuration production --stats-json $additionalParams | 82 | --configuration production --stats-json $additionalParams |
82 | fi | 83 | fi |
83 | 84 | ||
84 | cp "./dist/$defaultLanguage/manifest.webmanifest" "./dist/manifest.webmanifest" | 85 | cp "./dist/$defaultLanguage/manifest.webmanifest" "./dist/manifest.webmanifest" |