How to set environment via `ng serve` in Angular 6

后端 未结 7 2028
庸人自扰
庸人自扰 2020-11-30 18:52

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

相关标签:
7条回答
  • 2020-11-30 19:50

    You can use command ng serve -c dev for development environment ng serve -c prod for production environment

    while building also same applies. You can use ng build -c dev for dev build

    0 讨论(0)
提交回复
热议问题