ng build Allocation failed - JavaScript heap out of memory code example
Example: ng build JS stacktrace
node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng build client --prod
node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng build client --prod