mirror of https://github.com/Chocobozzz/PeerTube
Remove unused i18n build
parent
3520d38515
commit
ae48a71d57
|
@ -208,15 +208,6 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"i18n": {
|
|
||||||
"optimization": false,
|
|
||||||
"outputHashing": "none",
|
|
||||||
"sourceMap": true,
|
|
||||||
"namedChunks": true,
|
|
||||||
"aot": true,
|
|
||||||
"buildOptimizer": false,
|
|
||||||
"budgets": []
|
|
||||||
},
|
|
||||||
"hmr": {
|
"hmr": {
|
||||||
"localize": false,
|
"localize": false,
|
||||||
"budgets": [
|
"budgets": [
|
||||||
|
|
|
@ -41,7 +41,7 @@ cd client
|
||||||
rm -rf ./dist ./compiled
|
rm -rf ./dist ./compiled
|
||||||
|
|
||||||
# Don't build other languages if --light arg is provided
|
# 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"
|
npm run ng build -- --prod --output-path "dist/build"
|
||||||
|
|
||||||
for key in "${!languages[@]}"; do
|
for key in "${!languages[@]}"; do
|
||||||
|
@ -66,11 +66,6 @@ else
|
||||||
export ANALYZE_BUNDLE=true
|
export ANALYZE_BUNDLE=true
|
||||||
fi
|
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
|
npm run ng build -- --localize=false --output-path "dist/$defaultLanguage/" --deploy-url "/client/$defaultLanguage/" --prod --stats-json $additionalParams
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue