Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !6127

Document --stats flag and multi chunk analysis

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/OzairP/master into master Jan 04, 2019
  • Overview 7
  • Commits 3
  • Pipelines 0
  • Changes 1

Created by: OzairP

Finalized page screenshot can be seen here

Documenting --stats

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/

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/OzairP/master