From 13c749c121433be7d29984083d6dd106486dc6f8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 5 Jul 2021 15:19:23 +0200 Subject: [PATCH] Fix angular builds --- scripts/build/client.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build/client.sh b/scripts/build/client.sh index 0b7cbec35..5ecbff28d 100755 --- a/scripts/build/client.sh +++ b/scripts/build/client.sh @@ -49,7 +49,7 @@ if [ -z ${1+x} ] || ([ "$1" != "--light" ] && [ "$1" != "--analyze-bundle" ]); t additionalParams="--sourceMap=true" fi - npm run ng build -- --configuration production --output-path "dist/build" $additionalParams + node --max_old_space_size=8192 node_modules/.bin/ng build --configuration production --output-path "dist/build" $additionalParams for key in "${!languages[@]}"; do lang=${languages[$key]} @@ -72,7 +72,7 @@ else export ANALYZE_BUNDLE=true fi - npm run ng build -- --localize=false --output-path "dist/$defaultLanguage/" \ + node --max_old_space_size=8192 node_modules/.bin/ng build --localize=false --output-path "dist/$defaultLanguage/" \ --deploy-url "/client/$defaultLanguage/" --configuration production --stats-json $additionalParams fi