class Middleman::Extensions::MinifyCss::SassCompressor
Public Class Methods
compress(style, options={})
click to toggle source
# File lib/middleman-more/extensions/minify_css.rb, line 23 def self.compress(style, options={}) root_node = ::Sass::SCSS::CssParser.new(style, 'middleman-css-input', 1).parse root_node.options = options.merge(style: :compressed) root_node.render.strip end