class Assette::PostProcessor::CSSMin

Public Instance Methods

minify?() click to toggle source
# File lib/assette/post_processors/css_min.rb, line 10
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
processor() click to toggle source
# File lib/assette/post_processors/css_min.rb, line 20
def processor
  Reader::Less.new(@file).compile(:compress => true).chomp
end
should_process?() click to toggle source
# File lib/assette/post_processors/css_min.rb, line 4
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