mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
Allow Brotli compression to be disabled when precompiling.
This commit is contained in:
@ -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`
|
||||
|
Reference in New Issue
Block a user