I have a react project, about 40MB. I run 'npm run build' with the param --max-old-space-size=4096.
At my local, about 8GB RAM, the build is running fine. But on Jenkins (AWS EC2 hosted one, t2.medium) 4GB, either 'Out Of Memory' or crash EC2 instance.
Please advice if any way we can overcome on Jenkins 4GB RAM.
Thanks,