@import in CSS comment (Genesis)
-
Hi,
Great plugin!!! Thank you!
In version 2.1.0 (coming from 2.0.2), Autoptimize reads/prints (some) CSS as CSS, even if it resides inside a CSS comment.
For example, the Genesis framework starts its CSS file with a comment containing a warning:
/* # WARNING
This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances. Please do all modifications in the form of a child theme.
Copy the contents of this file to the child theme. Do not use @import, as the CSS included with Genesis might change in the future.*/
Where “@import, as the CSS included with Genesis might change in the future.” is recognized as CSS and used in the minimized/combined CSS file. This results in:
@import, as the CSS included with Genesis might change in the future.@import url(//fonts.googleapis.com/css?family=Lato:300,400,700);
Which should have been:
@import url(//fonts.googleapis.com/css?family=Lato:300,400,700);
I hope this can be fixed in a new version.
Thank you
- The topic ‘@import in CSS comment (Genesis)’ is closed to new replies.