2

Which tools does jQuery use to compress its source code in version 1.6.2?

Th 00 mÄ s
  • 3,776
  • 1
  • 27
  • 46
Magic
  • 1,182
  • 2
  • 18
  • 28
  • I remember it used different minifiers for different versions. It used YUI Compressor before, also Packer before (but then John Resig wrote a note saying that it is not worth the extra decoding step to use Packer), then briefly (I think 1.6) using Closure Compiler (simple mode), then now moved to Uglify I believe. – Stephen Chung Jul 07 '11 at 11:24

2 Answers2

3

It uses UglifyJS. Previously (until 1.4) they used Packer.

https://github.com/jquery/jquery/blob/master/Makefile#L9

katspaugh
  • 17,449
  • 11
  • 66
  • 103
1

I'm not sure, but I find this (minifyjavascript.com) useful, dunno if it helps.

David Thomas
  • 249,100
  • 51
  • 377
  • 410
  • Is it a coincidence that your first name is the same as the author of UglifyJS's name? – katspaugh Jul 07 '11 at 09:05
  • 1
    @katspaugh: If it were not, I'm sure he wouldn't be posting about a competing tool. :) Not only do the two gentlemen have different last names, but the first is rather common. So your comment is a bit odd. – Lightness Races in Orbit Jul 07 '11 at 09:10
  • How common is it among international (mostly anglophone) audience? To me it seems rather rare and coincidence peculiar. Not implying anything else. – katspaugh Jul 07 '11 at 09:19
  • @katspaugh: Anglophone is not the same as Western. As it happens, ["Mihai" is the Romanian form of "Michael"](http://en.wikipedia.org/wiki/Mihai_%28name%29), which I imagine is quite common no matter where you go. – Lightness Races in Orbit Jul 07 '11 at 09:21
  • wow, nice that I got a - on my very first answer here... and secondly I never heard of uglifyjs till now. and third what's wrong with my name? – Mihai Ionescu Jul 08 '11 at 12:31
  • @MihaiIonescu Well I assume it was because you didn't try to answer the question. However as the down voter didn't specify the reason and you are new, I'll give you a +1 for at least providing an alternative minifier. Please put a little more effort into your next answer though. – Gerry Aug 23 '12 at 21:31