From 8cc56c7fddb4c9fe3cfe1a19f340fc07dc4cec0f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 12 Feb 2020 11:34:34 +0100 Subject: Only use basehref Will allow us to use the localize option --- scripts/build/client.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts/build') diff --git a/scripts/build/client.sh b/scripts/build/client.sh index 99394838a..aa3f89c03 100755 --- a/scripts/build/client.sh +++ b/scripts/build/client.sh @@ -76,10 +76,11 @@ if [ -z ${1+x} ] || [ "$1" != "--light" ]; then # TODO: remove when the project will use runtime translations pre_build_hook "$lang" - npm run ng build -- --output-path "dist/build" --deploy-url "/client/$lang/" --prod --configuration="$lang" + npm run ng build -- --prod --configuration="$lang" - mv "dist/build/$key" "dist/$lang" - rmdir "dist/build" + if [ ! "$lang" = "$key" ]; then + mv "dist/$key" "dist/$lang" + fi # Do not duplicate assets rm -r "./dist/$lang/assets" -- cgit v1.2.3