raise RAM, second attempt

This commit is contained in:
Tamius Han 2021-06-07 20:34:27 +02:00
parent 50719113b1
commit fef2c26cbe
2 changed files with 4 additions and 1 deletions

View File

@ -10,6 +10,9 @@ npm run pre-build
rm ./dist-zip/uw-amo-source.zip
mv -f ./dist-zip/*.zip ./build/old
# lets force raise ram limit, but the improper way
# export NODE_OPTIONS=--max_old_space_size=4096
# build the version for each browser and create a zip afterwards
# step 1: define build functions
#function buildFF {

View File

@ -38,7 +38,7 @@ if [ ! -z "$GIT_COMMIT" ] ; then
fi
# let's raise RAM limit for npm command globally
alias npm='node --max_old_space_size=2048 /usr/bin/npm'
NODE_OPTIONS=--max_old_space_size=4096
npm ci