How to minify jquery files?

chobo2 picture chobo2 · Nov 5, 2009 · Viewed 12.1k times · Source

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?

Answer

BalusC picture BalusC · Nov 5, 2009

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.