lib/jammit/sass_compressor.rb in jammit-0.6.6 vs lib/jammit/sass_compressor.rb in jammit-0.7.0
- old
+ new
@@ -8,10 +8,8 @@
end
# Compresses +css+ using sass' CSS parser, and returns the
# compressed css.
def compress(css)
- root_node = ::Sass::SCSS::CssParser.new(css, 'jammit-combined-input').parse
- root_node.options = {:style => :compressed}
- root_node.render.strip
+ ::Sass::Engine.new(css, :syntax => :scss, :style => :compressed).render.strip
end
-end
\ No newline at end of file
+end