From 1b5b61ae2f2a6aa57397e2f3dd9c324c2fa0d22e Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 19 Mar 2017 15:20:30 +0200 Subject: [PATCH] Use brotli in make_static.PL if available (cherry picked from commit ff4a482ff70a3ff572ae8a3dd23de0ba5ebf4989) --- make_static.PL | 2 ++ 1 file changed, 2 insertions(+) diff --git a/make_static.PL b/make_static.PL index 177231e..77ab59f 100644 --- a/make_static.PL +++ b/make_static.PL @@ -17,7 +17,9 @@ mkdir 'static/logos'; sub gzip_file { my ($file) = @_; + my $brotli = which 'brotli'; my $zopfli = which 'zopfli'; + system $brotli => '--input', $file, '--output', "$file.br" if $brotli; system $zopfli => $file if $zopfli; gzip $file => "$file.gz", -Level => 9, Minimal => 1 unless $zopfli; } -- 2.39.2