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
For Angular 2 - 5 refer the article Multiple Environment in angular
For Angular 6 use ng serve --configuration=dev
ng serve --configuration=dev
Note: Refer the same article for angular 6 as well. But wherever you find --env instead use --configuration. That's works well for angular 6.
--env
--configuration