What javascript min tool does jquery use? - Stack Overflow

I have a great deal of javascript that needs to be min'd before being served to the end user.Cur

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 remendations 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

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 remendations 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

Share Improve this question asked May 18, 2010 at 15:05 JDSJDS 1,3594 gold badges17 silver badges29 bronze badges 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 wele - I want to get this right. – JDS Commented May 18, 2010 at 15:08
  • You should post that as an answer to your question so you can accept it. – Josh Commented May 18, 2010 at 15:16
  • Seems that they now remend YUI, but they utilize(d) JSMIN. dev.jquery./browser/trunk/jquery/build/js/jsmin.js – Scott Commented May 18, 2010 at 15:17
Add a ment  | 

4 Answers 4

Reset to default 4

In jQuery 1.4, Google Closure Compiler is used.

See the FAQ in jQuery.

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.

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

http://jawr.java/

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745348351a4623672.html

相关推荐

  • What javascript min tool does jquery use? - Stack Overflow

    I have a great deal of javascript that needs to be min'd before being served to the end user.Cur

    3小时前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信