webpack-bundle-size-analyzer
webpack-bundle-size-analyzer copied to clipboard
Add option to present size as bytes.
I added the option --bytes to show size as bytes. Enables further scripting with the numbers.
Tests failed on Travis but they're fine on my computer; couldn't resist the phrase :). It appears that the failure is because of Node v11.11.0. Downgrading to v11.10.1 fixes it. The issue is discussed here.
I'll see about Node and Jest versions. The part about options object or enum I might take a look during the next weekend. TypeScript isn't familiar to me so my solution probably won't be the best but I'll try to get around to give it a shot.