Allow Brotli compression to be disabled when precompiling.
This commit is contained in:
parent
3378e2d49f
commit
fc3c34b78f
|
@ -108,7 +108,7 @@ def gzip(path)
|
||||||
end
|
end
|
||||||
|
|
||||||
def brotli(path)
|
def brotli(path)
|
||||||
if ENV['COMPRESS_BROTLI']
|
if ENV['COMPRESS_BROTLI']&.to_i == 1
|
||||||
STDERR.puts "brotli #{path}"
|
STDERR.puts "brotli #{path}"
|
||||||
STDERR.puts `brotli --quality 11 --input #{path} --output #{path}.br`
|
STDERR.puts `brotli --quality 11 --input #{path} --output #{path}.br`
|
||||||
STDERR.puts `chmod +r #{path}.br`
|
STDERR.puts `chmod +r #{path}.br`
|
||||||
|
|
Loading…
Reference in New Issue