Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding a little bit of documentation to Compressor

  • Loading branch information...
commit a141ff558938867a83cf77eb30c7b02fc54e3981 1 parent acb5b2a
@petebrowne authored
Showing with 8 additions and 5 deletions.
  1. +8 −5 lib/sprockets/sass/compressor.rb
View
13 lib/sprockets/sass/compressor.rb 100644 → 100755
@@ -3,17 +3,20 @@
module Sprockets
module Sass
class Compressor
+ # Compresses the given CSS using Sass::Engine's
+ # :compressed output style.
def compress(css)
if css.count("\n") > 2
::Sass::Engine.new(css,
- :syntax => :scss,
- :cache => false,
- :read_cache => false,
- :style => :compressed).render
+ :syntax => :scss,
+ :cache => false,
+ :read_cache => false,
+ :style => :compressed
+ ).render
else
css
end
end
end
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.