lib/preprocessors/javascript-preprocessor.rb in pakyow-assets-0.1.1 vs lib/preprocessors/javascript-preprocessor.rb in pakyow-assets-0.1.2
- old
+ new
@@ -1,8 +1,8 @@
require 'yui/compressor'
-Pakyow::Assets.preprocessor :js, fingerprint_contents: true do |path|
- content = File.open(path).read
+Pakyow::Assets.preprocessor :js, fingerprint: true, fingerprint_contents: true do |path|
+ content = File.read(path)
if Pakyow::Config.assets.minify
begin
YUI::JavaScriptCompressor.new(munge: true).compress(content)
rescue YUI::Compressor::RuntimeError