Use brotli in make_static.PL if available
[gruntmaster-page.git] / 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.009552 seconds and 4 git commands to generate.