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