Class: AutoprefixerRails::Sprockets

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/decidim/templates/autoprefixer_initializer.rb

Class Method Summary collapse

Class Method Details

.call(input) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/generators/decidim/templates/autoprefixer_initializer.rb', line 5

def self.call(input)
  filename = input[:name]

  # Disable autoprefixer for the graphiql-rails gem's assets because it
  # breaks some of the API tests when the '-webkit' prefixes are applied to
  # its CSS.
  return if filename.match(/^graphiql\/.*/)

  self.call_original(input)
end