Conflicts:
make_static.PL
warnings 0
File::Slurp 0
+ File::Which 0
Gruntmaster::Data 0
HTML::Element::Library 0
HTML::TreeBuilder 0
use IO::Compress::Gzip qw/gzip/;
use File::Slurp qw/read_file write_file edit_file_lines/;
use SVG::SpriteMaker;
+use File::Which;
use List::Util qw/first/;
mkdir 'static';
sub gzip_file {
my ($file) = @_;
- gzip $file => "$file.gz", -Level => 9, Minimal => 1;
+ my $zopfli = which 'zopfli';
+ system $zopfli => $file if $zopfli;
+ gzip $file => "$file.gz", -Level => 9, Minimal => 1 unless $zopfli;
}
sub write_gzfile {