class Suspenders::AutoprefixerGenerator
Public Instance Methods
add_autoprefixer_rails()
click to toggle source
# File lib/suspenders/generators/autoprefixer_generator.rb, line 5 def add_autoprefixer_rails gem 'autoprefixer-rails' Bundler.with_clean_env { run "bundle install" } end
copy_browserslistrc()
click to toggle source
# File lib/suspenders/generators/autoprefixer_generator.rb, line 10 def copy_browserslistrc if behavior == :invoke list = <<~TEXT last 1 version > 5% not IE 11 TEXT in_root do File.open('.browserslistrc', 'w') do |file| file << list end end else in_root do File.open('.browserslistrc', 'w') do |file| file << 'defaults' end end end end