Skip to content

[feature-request] Specify default configuration in angular.json, if no configuration provided #11120

@sebastian-zarzycki-apzumi

Description

Provide a way to specify a default configuration in angular.json, if no configuration is provided in commandline or otherwise.

If I understand correctly "dev" was the default configuration in Angular <=5, but it doesn't seem to be the case in Angular 6. Since we're now specifying configurations in a more detailed way (not just environment parameter), I think it would be useful to have a way to define which configuration is the default one. This would eliminate potential issues of "ng serve" vs "ng serve -c dev" and so on.

Technically, the "default" options could be specified directly within particular sections of angular.json (outside of configuration section), but I don't think it's a clean and desired solution. Defining configurations in their separate place seems readable and easier to maintain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions