Sha256: a9ca60ad07e1bdbedfade9c3610a76e6fa628184bcd5dcd8c90b9a45af0db107

Contents?: true

Size: 838 Bytes

Versions: 88

Compression:

Stored size: 838 Bytes

Contents

http_path       = "/"
css_dir         = "stylesheets"
sass_dir        = "sass"
images_dir      = "images"
javascripts_dir = "javascripts"

sourcemap     = true
output_style  = :compressed
sass_options  = { cache: false }
line_comments = false

require 'rubygems'
require 'bundler'
Bundler.require
require '../../lib/autoprefixer-rails'

on_stylesheet_saved do |file|
  css = File.read(file)
  map = file + '.map'

  if File.exists? map
    result = AutoprefixerRails.process(css,
      browsers: ['chrome 25'],
      from:     file,
      to:       file,
      map:    { prev: File.read(map), inline: false })
    File.open(file, 'w') { |io| io << result.css }
    File.open(map,  'w') { |io| io << result.map }
  else
    File.open(file, 'w') do |io|
      io << AutoprefixerRails.process(css, browsers: ['chrome 25'])
    end
  end
end

Version data entries

88 entries across 88 versions & 2 rubygems

Version Path
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/autoprefixer-rails-9.4.8/spec/compass/config.rb
autoprefixer-rails-9.4.9 spec/compass/config.rb
autoprefixer-rails-9.4.8 spec/compass/config.rb
autoprefixer-rails-9.4.7 spec/compass/config.rb
autoprefixer-rails-9.4.6 spec/compass/config.rb
autoprefixer-rails-9.4.5 spec/compass/config.rb
autoprefixer-rails-9.4.4 spec/compass/config.rb
autoprefixer-rails-9.4.3 spec/compass/config.rb
autoprefixer-rails-9.4.2 spec/compass/config.rb
autoprefixer-rails-9.4.1 spec/compass/config.rb
autoprefixer-rails-9.4.0 spec/compass/config.rb
autoprefixer-rails-9.3.1 spec/compass/config.rb
autoprefixer-rails-9.3.0 spec/compass/config.rb
autoprefixer-rails-9.2.1 spec/compass/config.rb
autoprefixer-rails-9.2.0 spec/compass/config.rb
autoprefixer-rails-9.1.4 spec/compass/config.rb
autoprefixer-rails-9.1.3 spec/compass/config.rb
autoprefixer-rails-9.1.2 spec/compass/config.rb
autoprefixer-rails-9.1.1 spec/compass/config.rb
autoprefixer-rails-9.1.0 spec/compass/config.rb