onedesign / generator-one-base

A foundation for One Design Company projects on the web.
Other
1 stars 1 forks source link

Sort libraries in Webpack console stats by file size (largest to smallest) #116

Closed cmalven closed 6 years ago

cmalven commented 6 years ago

By default, webpack will output a list of all files used in the bundle in order of id (which is based on the order they're used in the source, so not super useful).

Much more useful is to see these files listed in order of file size, from largest to smallest, so you can get a good sense of which libraries are adding the most heft to your bundle. This PR does that.