source-map-explorer icon indicating copy to clipboard operation
source-map-explorer copied to clipboard

Make file size more compact

Open caub opened this issue 4 years ago • 5 comments

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

caub avatar Mar 20 '21 13:03 caub

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

nikolay-borzov avatar Mar 20 '21 16:03 nikolay-borzov

@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

caub avatar Mar 20 '21 19:03 caub

Coverage Status

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

coveralls avatar Mar 21 '21 22:03 coveralls

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

danvk avatar Mar 22 '21 13:03 danvk

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)

caub avatar Mar 22 '21 22:03 caub