kirby-deprecated-plugins / kirby-html-minifier

Minify the html output of a site built with Kirby CMS
MIT License
21 stars 1 forks source link

Breaks on inline CSS with brace selector #17

Open bavarianbytes opened 6 years ago

bavarianbytes commented 6 years ago

Hi,

my site echos inline css in the page head. This CSS uses braces on some selectors, like a > span. The plugin seams to cuts away all of the CSS beginning with the first > in finds.

Greetz

jenstornell commented 6 years ago

Yes, I the < and > is a problem if it's inside inline style or inline js. As a workaround for now, maybe you can move the css into your css file?

bavarianbytes commented 6 years ago

Ok, good to know. As a workaround i disabled the plugin :-). Cause i need inline CSS for performance reasons.

jenstornell commented 6 years ago

That workaround should work as well. 😄

Related: https://github.com/jenstornell/kirby-html-minifier/issues/13