Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't compress binary files

  • Loading branch information...
commit 07b213897a212dc3dfbac1d3fec51ed29d7d0196 1 parent 2fb72bf
@runpaint authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Rakefile
View
4 Rakefile
@@ -192,10 +192,10 @@ desc "Gzip the website"
task gzip: :www do
Dir.chdir(WEB_OUT) do
FileList['*', '**/*', '**/**/*'].each do |f|
- if File.file?(f) && !f.end_with?('.gz')
+ if File.file?(f) && ['html','css','js'].include?(f[-3..-1])
new_f = "#{f}.en"
mv f, new_f
- system("gzip --best -c #{new_f} > #{new_f}.gz") or raise "Couldn't gzip #{new_f}: #$!"
+ sh("gzip --best -c #{new_f} > #{new_f}.gz") or raise "Couldn't gzip #{new_f}: #$!"
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.