I am trying to update my Angular 5.2 app to Angular 6. I successfully followed instructions in the Angular update guide (including the update of angular-cli to
angular-cli
You can use command ng serve -c dev for development environment ng serve -c prod for production environment
ng serve -c dev
ng serve -c prod
while building also same applies. You can use ng build -c dev for dev build
ng build -c dev