Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Anyone use google Closure Compiler?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #44126
    Rugg
    Participant

    I recently came across the google closure compiler and started testing it with some code. Curious if anyone here has used it for production with success. If there are better alternatives that I should be aware of, Im all ears. Thanks!

    http://closure-compiler.appspot.com/home

    #131825
    Mottie
    Member

    I use it all the time to make minified versions of my plugins. It is my favorite online compiler and it seems to produce the smallest code. The only time I ever had it fail was when I was trying to minify the original tablesorter code which uses `eval()` to make multi-column sorting work. GCC would strip out all of that code because the evaled variable wasn’t defined or used until the code was evaled. So I had to use Uglify instead.

    jQuery uses [Uglify.js](http://marijnhaverbeke.nl/uglifyjs), but I remember them saying they were working with Google to make GCC work for builds. Uglify is popular because you can use it with node.js.

    There is also [YUI compressor](http://refresh-sf.com/yui/), which I’ve only used once or twice, so I don’t have any constructive feedback to give about it.

    And lastly, of the compilers that I know about, is [packer](http://dean.edwards.name/packer/). It’s the oldest, and sometimes produces the smallest compiled results because of symbol obfuscation.

    #131861
    TheDoc
    Member

    I’ve been using the [YUI compressor](http://refresh-sf.com/yui/ “”) but might give the Closure Compiler a go.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.