Sha256: 84c1f8a076eea53c298ff4d6592d450842cc3447f4664437392d22665d8073ff
Contents?: true
Size: 813 Bytes
Versions: 2
Compression:
Stored size: 813 Bytes
Contents
module Assette class PostProcessor::CSSMin < Assette::PostProcessor(:css) def should_process? Assette.logger.debug("Testing post processor #{self.class}") {"Assette.config.compiling?: #{Assette.config.compiling?} Assette.config.minifying?: #{Assette.config.minifying?} minify?: #{minify?}"} # puts Assette.config.minifying? && minify? Assette.config.minifying? && minify? end def minify? # minify = false # minify ||= @args[:parent].minify? if @args[:parent] # minify &&= !file.never_minify? # puts @args[:parent].minify? if @args[:parent] # puts !file.never_minify? # minify minify ||= @args[:parent].minify? if @args[:parent] end def processor Reader::Less.new(@file).compile(:compress => true).chomp end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
assette-0.1.8 | lib/assette/post_processors/css_min.rb |
assette-0.1.7 | lib/assette/post_processors/css_min.rb |