Module: AutoprefixerRails::Sprockets
- Defined in:
- lib/autoprefixer-rails/sprockets.rb
Overview
Autoprefixer Sprockets postprocessor
Class Method Summary collapse
-
.call(input) ⇒ Object
Add prefixes for ‘css`.
- .processor=(processor) ⇒ Object
Class Method Details
.call(input) ⇒ Object
Add prefixes for ‘css`
13 14 15 16 17 18 19 20 21 |
# File 'lib/autoprefixer-rails/sprockets.rb', line 13 def call(input) result = @processor.process(input[:data], from: input[:filename]) result.warnings.each do |warning| $stderr.puts "autoprefixer: #{ warning }" end result.css end |
.processor=(processor) ⇒ Object
8 9 10 |
# File 'lib/autoprefixer-rails/sprockets.rb', line 8 def processor=(processor) @processor = processor end |