cfware / babel-plugin-template-html-minifier

Minify HTML in tagged template strings using html-minifier
MIT License
63 stars 4 forks source link

CSS compatible divider #7

Closed aletorrado closed 5 years ago

aletorrado commented 5 years ago

Hi, I'm the author of a very similar project named babel-plugin-polymer-html-minifier. I've noticed that you don't use a CSS compatible separator with a syntax such as prop:value.

html-minifier handles the style attribute content specially, discarding any invalid syntax, so I think this example won't work with your project:

<div style="
  ${styles}
"></div>
coreyfarrell commented 5 years ago

This happens when minifyCSS: true is used. I'll be posting an update to deal with that and an issue with unquoted attributes soon. Thanks for the report.

coreyfarrell commented 5 years ago

Fixed by release of v2.1.1.