Remove unused i18n build

pull/3382/head
Chocobozzz 2020-11-26 08:52:43 +01:00
parent 3520d38515
commit ae48a71d57
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 1 additions and 15 deletions

View File

@ -208,15 +208,6 @@
}
]
},
"i18n": {
"optimization": false,
"outputHashing": "none",
"sourceMap": true,
"namedChunks": true,
"aot": true,
"buildOptimizer": false,
"budgets": []
},
"hmr": {
"localize": false,
"budgets": [

View File

@ -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