Permalink
Browse files

Merge pull request #75 from izhan/master

allowing more uglifier options other than :output
  • Loading branch information...
2 parents 1da44c3 + df3a070 commit 7bd283aac83d7c46a8908f089033a6087d7cd68f @hjr3 hjr3 committed Jul 20, 2014
Showing with 4 additions and 4 deletions.
  1. +1 −1 .rspec
  2. +1 −1 Rakefile
  3. +1 −1 lib/rake-pipeline-web-filters/uglify_filter.rb
  4. +1 −1 spec/uglify_filter_spec.rb
View
@@ -1 +1 @@
--cfs -r spec_helper.rb
+-c -f d -r spec_helper.rb
View
@@ -4,7 +4,7 @@ require "bundler/setup"
desc "run the specs"
task :spec do
- sh "rspec -cfs spec"
+ sh "rspec -c -f d spec"
end
task :default => :spec
@@ -59,7 +59,7 @@ def generate_output(inputs, output)
if should_skip_minify?(input, output)
output.write input.read
else
- output.write Uglifier.compile(input.read, output: options)
+ output.write Uglifier.compile(input.read, options)
end
end
end
@@ -114,7 +114,7 @@ def output_file(name)
context "with Uglify options" do
let(:filter_args) do
- [{ :beautify => true }]
+ [output: { :beautify => true }]
end
it "passes options to the Uglify compressor" do

0 comments on commit 7bd283a

Please sign in to comment.