Reputation: 16939
I need to run node with a different space size like this
node --max_old_space_size=4096
but I need to combine it with the following command for npm
npm run build:aot:prod
How can I achieve this?
Upvotes: 0
Views: 101
Reputation: 6291
Create a new script in package.json like this:
"myscript": "npm run build:aot:prod && node --max_old_space_size=4096 mynodefile.js"
You can then run it by npm run myscript
.
Upvotes: 1