Use brotli in make_static.PL if available
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 19 Mar 2017 13:20:30 +0000 (15:20 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 19 Mar 2017 13:20:38 +0000 (15:20 +0200)
(cherry picked from commit ff4a482ff70a3ff572ae8a3dd23de0ba5ebf4989)

make_static.PL

index 177231ed93c4129bef83c2d1a4a97e4fea1694ab..77ab59f894e590dfbadf9bb3626a970f94c0abd3 100644 (file)
@@ -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;
 }
This page took 0.010063 seconds and 4 git commands to generate.