views:

177

answers:

1

I am looking to obfuscate and minify dynamically written javascript with ruby. Does anyone have any suggestions? Some kind of apache module that would intercept the .js file and obfuscate it before it was served would be ideal.

+2  A: 

http://www.crockford.com/javascript/jsmin.rb

A javascript minifier implemented in ruby.

Hope it helps...

Yannick M.