lib/autoprefixer-rails/sprockets.rb in autoprefixer-rails-5.2.1.3 vs lib/autoprefixer-rails/sprockets.rb in autoprefixer-rails-6.0.0

- old
+ new

@@ -6,25 +6,25 @@ def initialize(processor) @processor = processor end # Add prefixes for `css` - def process(context, css, opts) + def process(context, css) input = context.pathname.to_s output = input.chomp(File.extname(input)) + '.css' - result = @processor.process(css, opts.merge(from: input, to: output)) + result = @processor.process(css, from: input, to: output) result.warnings.each do |warning| $stderr.puts "autoprefixer: #{ warning }" end result.css end # Register postprocessor in Sprockets depend on issues with other gems - def install(assets, opts = {}) + def install(assets) assets.register_postprocessor('text/css', :autoprefixer) do |context, css| - process(context, css, opts) + process(context, css) end end end end