Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to minify jquery files?

I am using jquery and I got a couple plugins that don't offer a minified version. So I want to take the full version and minfiy it but all the sites I have found that you input your javascript and it minifies it breaks the plugin.

Like it must strip something out because I get a syntax error.

So anyone got a good one that I can use?

like image 992
chobo2 Avatar asked Nov 05 '09 05:11

chobo2


2 Answers

If you're familiar with Java you could also use YUI compressor to minify JS (and CSS) files yourself. We use it here as well and it works great.

like image 90
BalusC Avatar answered Oct 05 '22 11:10

BalusC


Javascript Compressor Rater

I believe it runs the js through rhino and outputs any errors found before hand, and after you can choose the one that works best for you.

like image 36
Corey Hart Avatar answered Oct 05 '22 11:10

Corey Hart