Skip to content

Default to production builds #14471

@StephenFluin

Description

@StephenFluin

🚀 Feature request

I know this is tough due to it being a breaking change with the ecosystem, but I think ng build should do a production build by default.

Command (mark with an x)

- [x] build

Description

Most of the time, developers should be building for production, and serving for development. It would save a lot of time overall if ng build defaulted to production mode.

Describe the solution you'd like

During the update process to 9 (or some other version), prompt the user if they want to keep the current behavior or migrate to the new behavior, and then default all new projects with ng new to production by default.

Describe alternatives you've considered

None

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions