lib/jekyll/webpack.rb in jekyll-webpack-0.2.6 vs lib/jekyll/webpack.rb in jekyll-webpack-0.2.7

- old
+ new

@@ -53,10 +53,10 @@ if cleanup_files array_or_scalar(cleanup_files) do |dest_for_clean| path = File.expand_path(dest_for_clean, site.dest) - if File.exists?(path) || Dir.exists?(path) + if File.exist?(path) || Dir.exist?(path) FileUtils.rm_rf(path) end end end end