-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking: document --prod
and add minification flag
#5315
Comments
I was able to figure out that --prod seem to have done AOT and -environment=prod but wasn't sure what else it did. The really shocking part was actually that I find the documentation missing and that filled me with worry. Thanks for clarifications on twitter. |
@filipesilva we can add that in |
@sumitarora I'm adding the docs bit in #6232, can you add the minification flag while you're fixing the UglifyJS problems you are working on? |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
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.
The text was updated successfully, but these errors were encountered: