lib/middleman-webp/converter.rb in middleman-webp-0.2.6 vs lib/middleman-webp/converter.rb in middleman-webp-0.2.7

- old
+ new

@@ -13,10 +13,12 @@ def convert @original_size = 0 @converted_size = 0 convert_images(image_files) do |src, dst| - next reject_file(dst) if dst.size >= src.size + if !!@options.allow_skip && dst.size >= src.size + next reject_file(dst) + end @original_size += src.size @converted_size += dst.size @builder.say_status :webp, "#{dst.path} "\ "(#{change_percentage(src.size, dst.size)} smaller)"