5

I have a great deal of javascript that needs to be min'd before being served to the end user. Currently, I'm using JSMIN, but I'd like to switch to something a bit more powerful (such as something with local variable replacement). I'm currently looking at YUI min developed by yahoo, and it got me thinking about the min tool that jquery uses. Does anyone know what it is and if it's publicly available? Also, any recommendations on other min tools that might be better suited than YUI min? If possible, I'd like a java solution so I can just plug the library into what I've already created for the JSMIN solution.

Thanks

3
  • EDIT: I took a closer look at the frequently asked questions on the jquery website, and it looks like they use the YUI Compressor. Still, any other suggestions are welcome - I want to get this right. Commented May 18, 2010 at 15:08
  • You should post that as an answer to your question so you can accept it. Commented May 18, 2010 at 15:16
  • Seems that they now recommend YUI, but they utilize(d) JSMIN. dev.jquery.com/browser/trunk/jquery/build/js/jsmin.js Commented May 18, 2010 at 15:17

4 Answers 4

4

In jQuery 1.4, Google Closure Compiler is used.

See the FAQ in jQuery.

Sign up to request clarification or add additional context in comments.

Comments

2

Since this question was asked/answered, jQuery has switched over to an entirely JavaScript-based build system. Their minification is done using UglifyJS now, which runs in NodeJS.

1 Comment

1

Here's a nice one that will do CSS as well.

http://jawr.java.net/

1 Comment

Updated link to their migrated site.
0

If you look at the build folder in the trunk you can see they've been using YUI since Jan. 09

1 Comment

You can see the log message from Resig himself: dev.jquery.com/log/trunk/jquery/build/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.