Keep comments when packing asset content, since it will also remove conditional comments for IE. Fixes bug #11876

This commit is contained in:
Colin Kuskie 2010-09-20 13:37:12 -07:00
parent ab6ba36a34
commit 86ecb10198
5 changed files with 41 additions and 3 deletions

View file

@ -2256,7 +2256,6 @@ sub packExtraHeadTags {
return $unpacked if !$unpacked;
my $packed = $unpacked;
HTML::Packer::minify( \$packed, {
remove_comments => 1,
remove_newlines => 1,
do_javascript => "shrink",
do_stylesheet => "minify",

View file

@ -242,7 +242,6 @@ sub packSnippet {
if ( $self->get('mimeType') eq "text/html" ) {
HTML::Packer::minify( \$packed, {
remove_comments => 1,
do_javascript => "shrink",
do_stylesheet => "minify",
} );

View file

@ -525,7 +525,6 @@ sub packTemplate {
my ( $self, $template ) = @_;
my $packed = $template;
HTML::Packer::minify( \$packed, {
remove_comments => 1,
do_javascript => "shrink",
do_stylesheet => "minify",
} );