mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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
|
||||
|
||||
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`
|
||||
|
Loading…
Reference in New Issue
Block a user