Sha256: 80e8974da73b0d7655d2418d61087c42f4f16df9ebdeb9c649e053d52597284b

Contents?: true

Size: 687 Bytes

Versions: 2

Compression:

Stored size: 687 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 do
      config = asset_config[:plugins][:css][:autoprefixer]
      AutoprefixerRails.install(self, jekyll.safe ? config : {
        # Your configuration here.
      })
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-assets-3.0.7 lib/jekyll/assets/plugins/prefixer.rb
jekyll-assets-3.0.6 lib/jekyll/assets/plugins/prefixer.rb