After making some changes in my TypeScript files, each build takes over 20 minutes. I run this command: ng build --output-path=..\\..\\static\\angularjs.
ng build --output-path=..\\..\\static\\angularjs
While in dev mode you can change this flag for your development to
"buildOptimizer": false
This worked for me . Angular 7 .