diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index 9612a09a818..23e036f57c0 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -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`