lib/awestruct/extensions/minify.rb in awestruct-0.5.1 vs lib/awestruct/extensions/minify.rb in awestruct-0.5.2
- old
+ new
@@ -62,21 +62,21 @@
if !ext.empty?
ext_sym = ext[1..-1].to_sym
if @types.include?(ext_sym)
case ext_sym
when :html
- print "minifying html #{page.output_path}"
+ $LOG.debug "minifying html #{page.output_path}" if $LOG.debug?
input = htmlcompressor(page, input, site.minify_html_opts)
when :css
# TODO: Figure out how to do this is sass / less and document it
#print "minifying css #{page.output_path}"
#input = yuicompressor_css(page, input)
when :js
- print "minifying js #{page.output_path}"
+ $LOG.debug "minifying js #{page.output_path}" if $LOG.debug?
input = js_compressor(page, input)
when :png
- print "minifying png #{page.output_path}"
+ $LOG.debug "minifying png #{page.output_path}" if $LOG.debug?
input = pngcrush(page, input)
end
end
end
end
@@ -133,9 +133,9 @@
else
$LOG.debug " no gain" if $LOG.debug?
input
end
end
- end
-
+ end
end
end
+