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
1.4m articles
1.4m replys
5 comments
57.0k users