lib/jekyll/zopfli/compressor.rb in jekyll-zopfli-2.4.0 vs lib/jekyll/zopfli/compressor.rb in jekyll-zopfli-2.4.1

- old
+ new

@@ -48,10 +48,10 @@ # config. # # @return void def self.compress_directory(dir, site) extensions = zippable_extensions(site).join(',') - files = Dir.glob(dir + "/**/*{#{extensions}}") + files = Dir.glob(File.join(dir, "**", "*{#{extensions}}")) files.each do |file| next unless regenerate? file, site compress_file( file,