I am getting an heap out of memory error while ng build --prod ,Is there any work around. its building fine when --aot=false.
Any idea ?
Try running build script in package json by the following script:
"scripts": { "build-prod": "node --max_old_space_size=5048 ./node_modules/@angular/cli/bin/ng build --prod" }
Reference
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With