Angular-cli: Missing doc about ng build with --build-optimizer

Created on 23 Aug 2017  路  6Comments  路  Source: angular/angular-cli

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.


macOS Sierra 10.12.6

  • node: 8.4.0
  • npm: 5.3.0
  • angular-cli: 1.3.1

When use ng build with --prod and --build-optimizer flag, it can not separate vendor chunk from the main chunk, it must use --vendor-chunk explicitly. But this build bigger chunk.
1
2

Most helpful comment

Disabling the vendor chunk is intentional as it allows further optimization. The example above demonstrates the benefit (~200KB saved).

All 6 comments

Disabling the vendor chunk is intentional as it allows further optimization. The example above demonstrates the benefit (~200KB saved).

@clydin Thank you! Please update the doc as soon as possible to explain this.

While we are at it. Wiki on build switch shows -bo is a valid alias, when as of 1.3.2 the only valid alias is --buildOptimizer.

Closing this issue...

@frostbtn FYI, that issue has been addressed in master and will be updated in the next release of the docs to the wiki.

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