diff --git a/scripts/build.sh b/scripts/build.sh index 5760ecd0e..3b1cf07b8 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -28,8 +28,8 @@ BRANCH=`git rev-parse --abbrev-ref HEAD` echo "The branch name is $BRANCH" if [ $BRANCH = "develop" ] then - SRC_MAPS="--sourcemap" - echo "Source maps are enabled" + # SRC_MAPS="--sourcemap" + echo "Source maps are NOT enabled as they consume to much RAM" fi if [ $BRANCH = "master" ] || [ $BRANCH = "develop" ] @@ -38,12 +38,12 @@ then export ASSET_URL echo "$ASSET_URL" else - ASSET_URL="mc/$BRANCH" + ASSET_URL="$BRANCH" export ASSET_URL echo "$ASSET_URL" fi -export NODE_OPTIONS=--max-old-space-size=32768 +export NODE_OPTIONS=--max-old-space-size=7000 vite build $SRC_MAPS