Angular-cli: How to uglify when use 'ng build'

Created on 31 Mar 2017  路  3Comments  路  Source: angular/angular-cli

How to uglify when use 'ng build'

I use ng build,the vendor.bundle.js size is 6M!

which options I can use?

Most helpful comment

https://github.com/angular/angular-cli/blob/master/CONTRIBUTING.md#question

ng build --prod

Disclaimer: Angular is a big library, with latest version (tree shaking enabled) it's reduced to 200KB gzipped.

All 3 comments

https://github.com/angular/angular-cli/blob/master/CONTRIBUTING.md#question

ng build --prod

Disclaimer: Angular is a big library, with latest version (tree shaking enabled) it's reduced to 200KB gzipped.

@ishitatsuyuki got it

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings