lib/jekyll-minifier.rb in jekyll-minifier-0.1.2 vs lib/jekyll-minifier.rb in jekyll-minifier-0.1.3
- old
+ new
@@ -83,10 +83,14 @@
class Document
include Compressor
def write(dest)
dest_path = destination(dest)
- output_html(dest_path, output)
+ if exclude?(dest, dest_path)
+ output_file(dest_path, output)
+ else
+ output_html(dest_path, output)
+ end
trigger_hooks(:post_write)
end
end
class Page