lib/jekyll/gzip.rb in jekyll-gzip-2.3.0 vs lib/jekyll/gzip.rb in jekyll-gzip-2.4.0

- old
+ new

@@ -17,9 +17,15 @@ Jekyll::Hooks.register :site, :post_write do |site| Jekyll::Gzip::Compressor.compress_site(site) if Jekyll.env == 'production' end +Jekyll::Hooks.register :clean, :on_obsolete do |obsolete| + obsolete.delete_if do |path| + path.end_with? '.gz' + end +end + begin require 'jekyll-assets' Jekyll::Assets::Hook.register :env, :after_write do |env| if Jekyll.env == 'production'