Take the tour ×  I am looking for a css minifier that I could
use in rails apps (not gziper) which doesn't need a command line
YUI compressor instalation. I am working on a content mangament
software where the css is pasted into a textarea and then I want
to minify then gzip and send it to amazon. So those solutions
are not OK which use some command line preprocessing... Any
ideas?  Online minifier services are also welcome.
share|improve this question There is the Google Closure
Compiler, but that isn't written in Ruby AFAICT... –  Blender
Sep 9 '11 at 19:46 Well... That is good to compress the
javasript... –  Boti Sep 9 '11 at 19:48 Oh, whoops. For some
reason I misread CSS and thought JS. Disregard that comment...
–  Blender Sep 9 '11 at 19:59 add comment  3 Answers  You could
also try SASS with :syntax => :scss, :style => :compressed.
share|improve this answer Since the css is coming from a
textarea as a string how do you tell the SASS API to compress a
string? –  Boti Sep 19 '11 at 19:00 As in the exam