Sha256: 3a9acc11e74c8d583451f92e4fb1ff145a90aae5b5db391cb575f4b1f56c1306

Contents?: true

Size: 664 Bytes

Versions: 154

Compression:

Stored size: 664 Bytes

Contents

require 'rake'
require 'rake/tasklib'
require 'autoprefixer-rails'

module Rake
  # Define task to inspect Autoprefixer browsers, properties and values.
  # Call it from your `Rakefile`:
  #
  #   AutoprefixerTasks.new(['> 1%', 'opera 12'])
  class AutoprefixerTasks < Rake::TaskLib
    attr_reader :browsers

    def initialize(params = {})
      @params    = params
      @processor = AutoprefixerRails.processor(@params)
      define
    end

    def define
      namespace :autoprefixer do
        desc 'Show selected browsers and prefixed CSS properties and values'
        task :info do
          puts @processor.info
        end
      end
    end
  end
end

Version data entries

154 entries across 154 versions & 3 rubygems

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