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