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.4.19.0 lib/rake/autoprefixer_tasks.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/autoprefixer-rails-10.4.16.0/lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-10.4.16.0 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-10.4.13.0 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-10.4.7.0 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-10.4.2.0 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-10.4.0.0 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-10.3.3.0 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-10.3.1.0 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-10.2.5.1 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-10.2.5.0 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-10.2.4.0 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-10.2.0.0 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-10.1.0.0 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-10.0.3.0 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-10.0.2.0 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-10.0.1.3 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-10.0.1.2 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-10.0.1.1 lib/rake/autoprefixer_tasks.rb
autoprefixer-rails-10.0.1.0 lib/rake/autoprefixer_tasks.rb