Sha256: 2da690f5072bc8a6e1d8e74c0a8ea8d899d3bdf50b9448e2c257bb28fc82e9b5

Contents?: true

Size: 695 Bytes

Versions: 28

Compression:

Stored size: 695 Bytes

Contents

# frozen_string_literal: true

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

28 entries across 28 versions & 2 rubygems

Version Path
autoprefixer-rails-10.0.0.2 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-10.0.0.1 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-10.0.0 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-9.8.6.5 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-9.8.6.4 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-9.8.6.3 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-9.8.6.2 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-9.8.6.1 lib/rake/autoprefixer_tasks.rb