-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🙋 Report of generated bundle size + breakdown of contents #415
Comments
I'll take this ! How about an option to generate the stats i.e. --stats ? |
Seems like something we could print by default after a successful build. |
A detailed report could be quite long so it may be useful to have a terse summary by default and a more detailed report behind a flag. e.g. default output Bundles created:
File Size Time to generate (secs)
index.js 123kB 3
index.css 20kB 13
---------------------------------------------------
Totals 143kB 16 For the detailed breakdown it'd be great to have something like the report that webpack-bundle-analyzer creates https://www.npmjs.com/package/webpack-bundle-analyzer (you could generate the tree data as a first step and other folks could hook in different visualisations later). |
Here's a good place to start: Lines 140 to 148 in 8a65676
In watch mode you'll probably want to update some of the code in the logger to replace the lines everytime. Looking at it quickly I think it can only handle single line statuses. Lines 76 to 110 in 8a65676
|
I like the way bankai web compiler generates a report. Here's the code. |
It would be really great to have a view like here webpack-bundle-analyzer |
#733 looks spot on 👍 Any chance v1.5.2 will be released soon? 😁 |
@gregtillbrook Looks like it will be released this week. |
btw - I had a look through the report code and it gave me enough pointers to bosh together a bundle visualiser plugin POC in an evening - so thanks again 😄 https://github.com/gregtillbrook/parcel-plugin-bundle-visualiser |
@gregtillbrook great work mate. Even the visualisation of relative size has been very useful straight away for identifying things to refine. I'm quite partial to stats webpack spits out, specifically module size and dependencies. |
@TimNZ Ive just released v1 which now includes some actual numbers on hover. To be honest Ive not got much in the way of future plans atm - just gunna see what feedback/requests I get. |
@gregtillbrook Perfect. I'll fork and have a play as well. |
Hiya is it possible to get parcel build to output more info about final bundle size + a breakdown of modules that contributed to the bundles size?
The text was updated successfully, but these errors were encountered: