Skip to content

Allow analysis of generated bundle and dependencies #1858

Closed
@valscion

Description

@valscion

This issue is a continuation from the Twitter thread discussing usage of webpack-bundle-analyzer with CRA.

webpack-bundle-analyzer can be used either as a CLI, providing it the stats.json webpack JSON output and the built files. With these, we are able to:

  1. Show the sizes of each module as they are on disk
  2. Show the sizes of each module after minifcation
  3. Show the sizes of each module after minification and gzip

Here's an example I built from a project using create-react-app after first having to eject.

⏩ report.html.zip ⏪

The changes I had to do after ejecting are in this commit: valscion/arvontakone@fbbc306

EDIT: Here's a GIF of that visualization:

webpack-bundle-analyzer-example

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions