Closed vincerubinetti closed 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.
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:
stats-webpack-plugin
(same as webpack stats command I think?)npx webpack-bundle-analyzer dist/stats.json
Obviously this is a tangent, but I'm curious as to what you meant by that.
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 :)
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.