Skip to content

Tracking: document --prod and add minification flag #5315

@filipesilva

Description

@filipesilva

We should document what --prod really does.

It's actually a sort of meta-flag that adds a bunch of defaults: https://github.com/angular/angular-cli/blob/master/packages/@angular/cli/models/webpack-config.ts#L84-L89

Besides setting these defaults, it also adds minification and a few more things: https://github.com/angular/angular-cli/blob/master/packages/@angular/cli/models/webpack-configs/production.ts#L85-L93

Minification should perhaps be opt-in however, via a flag.

Metadata

Metadata

Labels

P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfularea: docsRelated to the documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions