Sha256: 0d21b522212027eaca4c2c11b4f8194ea0865dc9ee1d18bae974eec211ddfd6a

Contents?: true

Size: 700 Bytes

Versions: 5

Compression:

Stored size: 700 Bytes

Contents

# Frozen-string-literal: true
# Copyright: 2012 - 2018 - MIT License
# Encoding: utf-8

require "jekyll/assets"

Jekyll::Assets::Utils.javascript? do
  Jekyll::Assets::Utils.activate "autoprefixer-rails" do
    Jekyll::Assets::Hook.register :config, :before_merge do |c|
      c.deep_merge!({
        plugins: {
          css: {
            autoprefixer: {
              # Your config here.
            },
          },
        },
      })
    end

    Jekyll::Assets::Hook.register :env, :after_init, priority: 1 do
      config = asset_config[:plugins][:css][:autoprefixer]
      AutoprefixerRails.install(self, jekyll.safe ? config : {
        # Your configuration here.
      })
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jekyll-assets-3.0.12 lib/jekyll/assets/plugins/prefixer.rb
jekyll-assets-3.0.11 lib/jekyll/assets/plugins/prefixer.rb
jekyll-assets-3.0.10 lib/jekyll/assets/plugins/prefixer.rb
jekyll-assets-3.0.9 lib/jekyll/assets/plugins/prefixer.rb
jekyll-assets-3.0.8 lib/jekyll/assets/plugins/prefixer.rb