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 30a1060b88
commit e549df1b47
5 changed files with 41 additions and 3 deletions

View file

@ -181,7 +181,6 @@ around extraHeadTags => sub {
my $unpacked = $_[0];
my $packed = $unpacked; ##Undo magic aliasing since a reference is passed below
HTML::Packer::minify( \$packed, {
remove_comments => 1,
remove_newlines => 1,
do_javascript => "shrink",
do_stylesheet => "minify",

View file

@ -59,7 +59,6 @@ sub _build_snippetPacked {
}
elsif ( $self->mimeType eq "text/html" ) {
HTML::Packer::minify( \$snippet, {
remove_comments => 1,
do_javascript => "shrink",
do_stylesheet => "minify",
} );

View file

@ -82,7 +82,6 @@ sub _build_templatePacked {
my $template = $self->template;
if (defined $template) {
HTML::Packer::minify( \$template, {
remove_comments => 1,
do_javascript => 'shrink',
do_stylesheet => 'minify',
} );