Allow Brotli compression to be disabled when precompiling.

This commit is contained in:
Guo Xiang Tan 2017-03-27 11:55:43 +08:00
parent 3378e2d49f
commit fc3c34b78f
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ def gzip(path)
end
def brotli(path)
if ENV['COMPRESS_BROTLI']
if ENV['COMPRESS_BROTLI']&.to_i == 1
STDERR.puts "brotli #{path}"
STDERR.puts `brotli --quality 11 --input #{path} --output #{path}.br`
STDERR.puts `chmod +r #{path}.br`