Revert CSS minify hack since fixed in CSS::Minifier::XS 0.07
authorNigel Metheringham <nigel.metheringham@dev.intechnology.co.uk>
Fri, 23 Jul 2010 15:50:26 +0000 (16:50 +0100)
committerNigel Metheringham <nigel.metheringham@dev.intechnology.co.uk>
Fri, 23 Jul 2010 15:50:26 +0000 (16:50 +0100)
See https://rt.cpan.org/Public/Bug/Display.html?id=59549

script/gen.pl

index a0a15b03bbab185202ff4ec897863c4bce8ed5c8..eb61e05d9967646db876689347fc6ba28bd70334 100755 (executable)
@@ -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";