Sha256: 0899db10ef9d361d9513c1b89e4bc89904c4eda58b2bc2bdb4bbf6ec94cfa78d

Contents?: true

Size: 296 Bytes

Versions: 8

Compression:

Stored size: 296 Bytes

Contents

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

Jekyll::Assets::Hook.register :env, :init do
  if compress?("css")
    self.css_compressor = :sass
  end

  if compress?("js")
    try_require "uglifier" do
      self.js_compressor = :uglify
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jekyll-assets-2.1.3 lib/jekyll/assets/hooks/compression.rb
jekyll-assets-2.1.2 lib/jekyll/assets/hooks/compression.rb
jekyll-assets-2.1.1 lib/jekyll/assets/hooks/compression.rb
jekyll-assets-2.1.0 lib/jekyll/assets/hooks/compression.rb
jekyll-assets-2.0.3 lib/jekyll/assets/hooks/compression.rb
jekyll-assets-2.0.2 lib/jekyll/assets/hooks/compression.rb
jekyll-assets-2.0.1 lib/jekyll/assets/hooks/compression.rb
jekyll-assets-2.0.0 lib/jekyll/assets/hooks/compression.rb