Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Minify/Combining JS Files

I have around 6-7 javascript files that I want to minify and combine. I have been minifying my javascript here: http://www.minifyjavascript.com/

I am having a little difficulty "combining" my javascript. By combine, am I just copy and pasting all the javascript to one huge js file? If I do this, I will end up with around 1000 lines of code and I have to figure out exact dependencies. Is there an easy program online that can do this for me? Also, do I have to combine scripts such as jquery with my scripts?

Any help would be appreciated.

like image 363
rabid_zombie Avatar asked Apr 25 '11 22:04

rabid_zombie


1 Answers

There is the Closure Compiler from Google, that will combine JS files and minify them to a level of your choosing. It certainly saves a great deal of playing about with cutting & pasting which, as you probably know, can get very complicated.

like image 104
blankabout Avatar answered Oct 03 '22 07:10

blankabout