build angular application :
ng build
ng build --prod --aot --vendor-chunk --common-chunk --delete-output-path --buildOptimizer
ng build --configuration=<env> --output-hashing=all
The command –prod is deprecated since Angular 12 and removed in Angular 14
based on this Angular-Deprecated APIs and features.
Use --configuration production instead.
So the command will be
ng build --configuration production
ng build <project> [options]