browserify-handbook icon indicating copy to clipboard operation
browserify-handbook copied to clipboard

How to deal with large browserified bundles?

Open fergiemcdowall opened this issue 9 years ago • 5 comments

Where do you begin when you want to analyse and fix bundles that are too large? What steps would you carry out to see what is taking up the most room in a broswerified bundle?

fergiemcdowall avatar Sep 21 '16 12:09 fergiemcdowall

You might have luck trying https://www.npmjs.com/package/disc Note that it doesn't support ES6 last time I used it

emilbayes avatar Nov 07 '16 10:11 emilbayes

Disc is cool. Is there a command line tool that does something similar?

fergiemcdowall avatar Nov 07 '16 10:11 fergiemcdowall

disc is a cli tool, but you mean one that doesn't show a web interface?

emilbayes avatar Nov 07 '16 10:11 emilbayes

Yes, I would ideally like a tool that can be invoked and parsed on the command line

fergiemcdowall avatar Nov 07 '16 11:11 fergiemcdowall

It doesn't seem too hard to rip out of disc if you wanted to: https://github.com/hughsk/disc/blob/master/index.js

emilbayes avatar Nov 08 '16 00:11 emilbayes