webpack-contrib / webpack-bundle-analyzer

Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap
MIT License
12.56k stars 483 forks source link

Feature Request: Website! #497

Closed vincerubinetti closed 2 years ago

vincerubinetti commented 2 years ago

Thanks for the great tool.

Other similar tools have a website where you can just upload the webpack-generated stats.json file to, and see the visualization there, no installation required.

This library's visualization is better than the others' imo, and it's the most popular. It'd be nice if people had a convenient way to test it out.

valscion commented 2 years ago

With only the stats JSON file, there's less useful info. We'd need the entire bundle to be uploaded together with stats file to get parsed and gzipped sizes.

Honestly this feature would be such a large undertaking that another whole project would be suitable for that. Anyone can feel free to create such a project and we can then link to it, once it is working, from this project's readme.

vincerubinetti commented 2 years ago

Honestly this feature would be such a large undertaking

That's fine, but...

With only the stats JSON file, there's less useful info

This confuses me. This section in the readme says you can just generate the stats file from webpack then point webpack-bundle-analyzer to it.

That's exactly what I did in my case, and I got parsed and gzipped sizes:

image

Obviously this is a tangent, but I'm curious as to what you meant by that.

valscion commented 2 years ago

The CLI reads the generated files in dist/ folder in your case, too, as that's where the stats.json file is, too. That is why you see gzip and parsed sizes in your screenshot :)