]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Remove unused i18n build
authorChocobozzz <me@florianbigard.com>
Thu, 26 Nov 2020 07:52:43 +0000 (08:52 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 26 Nov 2020 10:30:18 +0000 (11:30 +0100)
client/angular.json
scripts/build/client.sh

index cf92c7ade204ee0fd0165b169d142d4d75cbbd8f..6c02890413b351ee20bfd55e8b5a87ed62ca1017 100644 (file)
                 }
               ]
             },
-            "i18n": {
-              "optimization": false,
-              "outputHashing": "none",
-              "sourceMap": true,
-              "namedChunks": true,
-              "aot": true,
-              "buildOptimizer": false,
-              "budgets": []
-            },
             "hmr": {
               "localize": false,
               "budgets": [
index 9cd8d8cce92229aa1c46c795472c76fb74980527..3bca9105a495ecf5a27f0c352f79dd7deb285f33 100755 (executable)
@@ -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