n Angular to build an application in production mode you will use the command code example
Example 1: angular build with configuration
ng build --prod
ng build --configuration="test"
ng build --configuration="staging"
Example 2: angular build production
ng build --configuration=<env> --output-hashing=all