lib/autoprefixer-rails/sprockets.rb in autoprefixer-rails-6.3.7 vs lib/autoprefixer-rails/sprockets.rb in autoprefixer-rails-6.4.0
- old
+ new
@@ -31,11 +31,11 @@
result.css
end
# Register postprocessor in Sprockets depend on issues with other gems
def self.install(env)
- if ::Sprockets::VERSION.to_i < 4
+ if ::Sprockets::VERSION.to_i < 3
env.register_postprocessor('text/css', :autoprefixer) do |context, css|
process(context, css)
end
else
env.register_bundle_processor('text/css',
@@ -43,10 +43,10 @@
end
end
# Register postprocessor in Sprockets depend on issues with other gems
def self.uninstall(env)
- if ::Sprockets::VERSION.to_i < 4
+ if ::Sprockets::VERSION.to_i < 3
env.unregister_postprocessor('text/css', :autoprefixer)
else
env.unregister_bundle_processor('text/css',
::AutoprefixerRails::Sprockets)
end