Closed acarapetis closed 5 years ago
Setting removeAttributeQuotes: false
in minifyOptions
would fix this if not for the presence of a semicolon in defaultStrategy.getPlaceholder()
, which is stripped out by html-minifier's inline CSS minification.
Thanks for finding that bug! I added a test case for it and published 1.1.2 that fixes it.
I still have this issue in 1.2.5
but I've got multiple style properties in style
tag.
HTML:
<div style="left: ${left}px; top: ${top}px;"></div>
But this code works:
<div style="left: ${left+'px'}; top: ${top+'px'};"></div>
I still have this issue in
1.2.5
but I've got multiple style properties instyle
tag.HTML:
<div style="left: ${left}px; top: ${top}px;"></div>
But this code works:
<div style="left: ${left+'px'}; top: ${top+'px'};"></div>
This saved me hours of digging. Thanks @neuronetio!
If I run this test:
Then I get this error:
Replacing "color: ${color}" with "${color}" makes the error go away.