Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I analyse and reduce the size of my browserify generated files?

I have a small application using browserify, which, it has recently come to my attention, has a very large bundle.

Are there tools to analyse a browserify file and work out where the bulk of the file size is coming from?

How can I the reduce size of my browserify generated files?

like image 719
mikemaccana Avatar asked Mar 17 '15 14:03

mikemaccana


1 Answers

Check out disc: https://www.npmjs.com/package/disc

It analyses your bundle and show a graph ordered by file count or size.

enter image description here

like image 71
mantoni Avatar answered Oct 24 '22 07:10

mantoni