Angular-cli: How to generate build statistics?

Created on 21 Apr 2017  路  4Comments  路  Source: angular/angular-cli

With webpack, one can generate build statistics by doing this:

webpack --production --json > stats.json

(reference: https://www.man42.net/blog/2016/06/webpack-bundle-size-reduction/)

Can this be done by the cli and what is the command?

Most helpful comment

ng build --stats-json

All 4 comments

ng build --stats-json

Closing as above.

@delasteve Thanks!

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