Created by: OzairP
Finalized page screenshot can be seen here
--stats
Documenting This PR will document a feature released in 2.0.3
which is the --stats
flag that outputs the generated Webpack stats file (https://github.com/facebook/create-react-app/pull/3945).
Documenting multi chunk analysis
It also documents a method to analyze a bundle that contains multiple chunks (i.e. code split) since source-map-analyzer
does not support multiple files by using webpack-bundle-analyzer
instead.
Page structure change
Since the page does not contain one section anymore I expanded it into a introduction on bundle analysis and named the original section "Getting Started".
Notes
I double checked to make sure I followed consistency and styling but let me know if theres any thing I can align with the current code base :)
When posting this hidden feature to Reddit it looks like many people did not know about it either! https://www.reddit.com/r/reactjs/comments/a6drwr/til_in_cra2_you_can_pass_stats_flag_to_generate/