class Middleman::Extensions::MinifyCss::SassCompressor

Public Class Methods

compress(style, options={}) click to toggle source
# File lib/middleman-core/extensions/minify_css.rb, line 26
def self.compress(style, options={})
  root_node = ::Sass::SCSS::CssParser.new(style, 'middleman-css-input', 1).parse
  root_node.options = {}.merge!(options).merge!(style: :compressed)
  root_node.render.strip
end