From 42a7f241e7773d8c0166e43dab65014eb7438c1f Mon Sep 17 00:00:00 2001 From: Nigel Metheringham Date: Fri, 23 Jul 2010 16:50:26 +0100 Subject: [PATCH] Revert CSS minify hack since fixed in CSS::Minifier::XS 0.07 See https://rt.cpan.org/Public/Bug/Display.html?id=59549 --- script/gen.pl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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"; -- 2.30.2