Keep comments when packing asset content, since it will also remove conditional comments for IE. Fixes bug #11876
This commit is contained in:
parent
ab6ba36a34
commit
86ecb10198
5 changed files with 41 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
} );
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
} );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue