Sha256: d616592dbf7f2799d640d1905e683b4ccc61356f40938f2e886bc5ce13d22d4c

Contents?: true

Size: 367 Bytes

Versions: 4

Compression:

Stored size: 367 Bytes

Contents

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

Jekyll::Hooks.register :site, :after_reset do |jekyll|
  Jekyll::Assets::Env.new(jekyll)

  jekyll.sprockets.excludes.each do |exclude|
    unless jekyll.config["exclude"].grep(%r!\A#{Regexp.escape(exclude)}/?!).size > 0
      jekyll.config["exclude"] << exclude
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jekyll-assets-2.1.3 lib/jekyll/assets/hooks/jekyll/setup.rb
jekyll-assets-2.1.2 lib/jekyll/assets/hooks/jekyll/setup.rb
jekyll-assets-2.1.1 lib/jekyll/assets/hooks/jekyll/setup.rb
jekyll-assets-2.1.0 lib/jekyll/assets/hooks/jekyll/setup.rb