Class: Middleman::Extensions::MinifyCss::SassCompressor

Inherits:
Object
  • Object
show all
Defined in:
lib/middleman-core/extensions/minify_css.rb

Constant Summary collapse

COMPRESSED_OPTIONS =
{ style: :compressed }.freeze

Class Method Summary collapse

Class Method Details

.compress(style, options = {}) ⇒ Object



28
29
30
31
32
# File 'lib/middleman-core/extensions/minify_css.rb', line 28

def self.compress(style, options={})
  options = options.merge(COMPRESSED_OPTIONS)

  ::SassC::Engine.new(style, options).render.strip
end