lib/jekyll/zopfli.rb in jekyll-zopfli-1.0.0 vs lib/jekyll/zopfli.rb in jekyll-zopfli-1.1.0
- old
+ new
@@ -5,7 +5,9 @@
module Zopfli
end
end
Jekyll::Hooks.register :site, :post_write do |site|
- Jekyll::Zopfli::Compressor.new(site).compress
+ if ENV["JEKYLL_ENV"] == "production"
+ Jekyll::Zopfli::Compressor.new(site).compress
+ end
end
\ No newline at end of file