X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fbuild%2Fclient.sh;h=3bca9105a495ecf5a27f0c352f79dd7deb285f33;hb=0151c41c65e0e3e94288314afe295358b9d698f7;hp=9cd8d8cce92229aa1c46c795472c76fb74980527;hpb=66357162f8e1227495f09bd4f68446aad7071c6d;p=github%2FChocobozzz%2FPeerTube.git 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