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
2.1m questions
2.1m answers
60 comments
57.0k users