robertknight / webpack-bundle-size-analyzer

A tool for finding out what contributes to the size of Webpack bundles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Module size in SI units

lexaurin opened this issue · comments

Webpack shows size in SI bytes (power of 1000), analyzer should also.
https://github.com/webpack/webpack/blob/master/lib/Stats.js#L397
Otherwise it's confusing.

Reflecting on this, I think I'd rather use units which match all of the rest of the development tools I use, even if that means being inconsistent with Webpack, and would rather suggest at least asking Webpack to consider changing to non-SI units.

Size of file shows number of bits needed to store/transfer it's content. That's why 2^10 have exact meaning, while 10^3 tells nothing.

This days development (especially JS) gone far from Computer Since. Today's approaches and tools looks as more Lego Since rather Computer Since.