Home

Awesome

parcel-plugin-bundle-visualiser

A plugin for the Parcel bundler to visualise bundle contents.

NPM Version Linux CI Build Windows CI Build Known Vulnerabilities

Screenshot showing treemap of a bundle

This plugin aims to make it easier to visualise a bundles contents and aid in troubleshooting and optimisation. If you know webpack-bundle-analyzer then this plugin will be very familiar. Bundle contents is presented in a treemap that gives eash asset/folder an area relative to its size on disc.

Install

npm install --save-dev parcel-plugin-bundle-visualiser

Usage

The next time you run your parcel build in production mode (i.e. when NODE_ENV is 'production') a bundle report will be saved to <output directory>/report.html

Interpreting results

When you open the <output directory>/report.html in a browser you'll see a treemap that shows the contents of each bundle that parcel created in the last build. The area an asset takes up on screen is relative to the size of the asset (after any minification but before gzipping). Hover over treemap to see further details;

Release Notes

Contributing

Contribution is welcome to this project. If you have feedback or suggestion then you can add an issue (please do check for duplicates first). If you have a bug fix or minor improvement then see the steps below and have at it. If you intend a more meaty change it's best to raise an issue first to discuss whats planned.

Credits