Alias to the angular cli that changes node's max_old_space_used property
A little helper utility to allow setting max_old_space_size on the node process that runs the angular cli.
{
"config": {
"max_old_space_size": 3072
}
}
ng
to ng-alias
setup-ng-alias
runs before you try to run ng-alias
. i.e. with a prebuild
script:{
"scripts": {
"prebuild": "setup-ng-alias",
"build": "ng-alias build --prod"
}
}
This script has been tested on Windows and Unix environments.