danvk / source-map-explorer

Analyze and debug space usage through source maps
Apache License 2.0
3.81k stars 119 forks source link

Make file size more compact #203

Open caub opened 3 years ago

caub commented 3 years ago

Guys, could we do something like that? Else all the decimals and stuff makes the visualization quite cluttered, less readable

@nikolay-borzov @danvk

Thanks for that lib also

nikolay-borzov commented 3 years ago

Thank you for your contribution. I'm considering switching source-map-explorer visualization to foam-tree https://github.com/danvk/source-map-explorer/issues/185. Take a look. We might change what is displayed inside visualization blocks

caub commented 3 years ago

@nikolay-borzov Oh, well I've also used https://www.npmjs.com/package/webpack-bundle-analyzer (which uses foam-tree), and I kinda like the simplicity of source-map-explorer currently, it's just my take on it, but I like more the current way, more minimal

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 97.397% when pulling c045a12c1d499bd5d0ae0dbf4b44342ffe38943a on caub:compact-file-sizes into 0de56022dc1290c61aa42294f1ccfce64d220fa5 on danvk:master.

danvk commented 3 years ago

@caub thanks for the PR. Can you include a before/after screenshot where you see this improving legibility?

caub commented 3 years ago

2021-03-20-142815_563x501_scrot 2021-03-20-142724_561x502_scrot

The difference is small, but overall it's lighter (shorter unitssymbol, and 3 significant digits: 119.08 KB119K)