2009/7/14 Brian Chiha <[email protected]>

> I'm at the tail end of an RoR project with a heap of Javascript files
> (ExtJS).  Has anyone used a JS Minifier written in Ruby (Preferable),
> that can minify and join files?  We use Deprec, so getting in working
> via a release shouldn't be a hassle...
>

Brian,

The only sort of minifier worth its weight is one that does some sort of
lexical analysis of the JS source tree. The best of breed at the moment is
the YUI Compressor. It's not Ruby, it's Java and uses Mozilla's
Spidermonkey, but that should hardly matter. Have a look at this
talk<http://www.slideshare.net/nzakas/extreme-javascript-compression-with-yui-compressor>for
a good understanding of exactly what it does and what is involved when
you want a proper JS "minifier".

Cheers,

Chris

-- 
chrislloyd.com.au

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to