X-Git-Url: https://git.exim.org/exim-website.git/blobdiff_plain/2727fc610fdf454364f8144e57f5069074029f74..46f9869fe34ba8f14b6e4c0a41565d364eac572b:/script/gen.pl diff --git a/script/gen.pl b/script/gen.pl index d086fd3..a0a15b0 100755 --- a/script/gen.pl +++ b/script/gen.pl @@ -62,7 +62,9 @@ sub do_web { if ( $path =~ /(.+)\.css$/ ) { print "CSS to : docroot:/$path\n"; my $content = read_file("$opt{tmpl}/web/$path"); - write_file( "$opt{docroot}/$path", $opt{minify} ? CSS::Minifier::XS::minify($content) : $content ); + 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 ); } elsif ( $path =~ /(.+)\.js$/ ) { print "JS to : docroot:/$path\n";