From ff4a482ff70a3ff572ae8a3dd23de0ba5ebf4989 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 --- make_static.PL | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.2