From ae48a71d57516b7ae2c4f3f63d237a4c972f0ded Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 26 Nov 2020 08:52:43 +0100 Subject: [PATCH] Remove unused i18n build --- client/angular.json | 9 --------- scripts/build/client.sh | 7 +------ 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/client/angular.json b/client/angular.json index cf92c7ade..6c0289041 100644 --- a/client/angular.json +++ b/client/angular.json @@ -208,15 +208,6 @@ } ] }, - "i18n": { - "optimization": false, - "outputHashing": "none", - "sourceMap": true, - "namedChunks": true, - "aot": true, - "buildOptimizer": false, - "budgets": [] - }, "hmr": { "localize": false, "budgets": [ diff --git a/scripts/build/client.sh b/scripts/build/client.sh index 9cd8d8cce..3bca9105a 100755 --- a/scripts/build/client.sh +++ b/scripts/build/client.sh @@ -41,7 +41,7 @@ cd client rm -rf ./dist ./compiled # Don't build other languages if --light arg is provided -if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ] && [ "$1" != "--i18n" ]); then +if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); then npm run ng build -- --prod --output-path "dist/build" for key in "${!languages[@]}"; do @@ -66,11 +66,6 @@ else export ANALYZE_BUNDLE=true fi - if [ ! -z ${1+x} ] && [ "$1" == "--i18n" ]; then - additionalParams="--configuration=i18n" - export ANALYZE_BUNDLE=true - fi - npm run ng build -- --localize=false --output-path "dist/$defaultLanguage/" --deploy-url "/client/$defaultLanguage/" --prod --stats-json $additionalParams fi -- 2.41.0