lib/preprocessors/css-preprocessor.rb in pakyow-assets-0.1.1 vs lib/preprocessors/css-preprocessor.rb in pakyow-assets-0.1.2

- old
+ new

@@ -1,8 +1,8 @@ require 'yui/compressor' -Pakyow::Assets.preprocessor :css, fingerprint_contents: true do |path| - content = File.open(path).read +Pakyow::Assets.preprocessor :css, fingerprint: true, fingerprint_contents: true do |path| + content = File.read(path) if Pakyow::Config.assets.minify begin YUI::CssCompressor.new.compress(content) rescue YUI::Compressor::RuntimeError