From: Nigel Metheringham Date: Fri, 23 Jul 2010 15:50:26 +0000 (+0100) Subject: Revert CSS minify hack since fixed in CSS::Minifier::XS 0.07 X-Git-Tag: exim-4_89_1~93 X-Git-Url: https://git.exim.org/exim-website.git/commitdiff_plain/42a7f241e7773d8c0166e43dab65014eb7438c1f Revert CSS minify hack since fixed in CSS::Minifier::XS 0.07 See https://rt.cpan.org/Public/Bug/Display.html?id=59549 --- diff --git a/script/gen.pl b/script/gen.pl index a0a15b0..eb61e05 100755 --- a/script/gen.pl +++ b/script/gen.pl @@ -3,7 +3,7 @@ use strict; use warnings; -use CSS::Minifier::XS; +use CSS::Minifier::XS 0.07; use File::Copy; use File::Find; use File::Slurp; @@ -62,9 +62,7 @@ sub do_web { if ( $path =~ /(.+)\.css$/ ) { print "CSS to : docroot:/$path\n"; my $content = read_file("$opt{tmpl}/web/$path"); - my $output = $opt{minify} ? CSS::Minifier::XS::minify($content) : $content; - $output =~ s/and\(/and (/g; # hack round minify bug - write_file( "$opt{docroot}/$path", $output ); + write_file( "$opt{docroot}/$path", $opt{minify} ? CSS::Minifier::XS::minify($content) : $content ); } elsif ( $path =~ /(.+)\.js$/ ) { print "JS to : docroot:/$path\n";