From: Marius Gavrilescu Date: Sun, 19 Mar 2017 13:20:30 +0000 (+0200) Subject: Use brotli in make_static.PL if available X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=1b5b61ae2f2a6aa57397e2f3dd9c324c2fa0d22e;p=gruntmaster-page.git Use brotli in make_static.PL if available (cherry picked from commit ff4a482ff70a3ff572ae8a3dd23de0ba5ebf4989) --- 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; }