Angular 6: Multiple configurations (twas environments)

前端 未结 2 1280
暗喜
暗喜 2021-02-03 19:26

Trying to get angular-cli to recognise multiple configurations in angular.json

C:\\_dev\\myapp>ng serve --configuration development
Configuration         


        
2条回答
  •  悲哀的现实
    2021-02-03 19:54

    For Angular 2 - 5 refer the article for step by step solution for using Multiple Environment in angular

    For Angular 6 use 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.

提交回复
热议问题