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=ff4a482ff70a3ff572ae8a3dd23de0ba5ebf4989;p=gruntmaster-page.git Use brotli in make_static.PL if available --- diff --git a/make_static.PL b/make_static.PL index f599a56..e63b59f 100644 --- a/make_static.PL +++ b/make_static.PL @@ -15,7 +15,9 @@ mkdir 'static/js'; 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; }