CSS file containing comments only does not get mimized
-
I am using version 2.3.2 of Autoptimize. One of the CSS files I am adding currently only contains comments and no CSS code.
Interestingly, Autoptimize combines this CSS file correctly with all the other CSS (which I force in the head), but the comments of this particular CSS file are present in the final CSS output. Comments in all of the other CSS files get removed correctly.
Currently I fixed the problem by adding a dummy rule to the CSS file.
However, I believe that a CSS file containing comments only should be minified to an empty string.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘CSS file containing comments only does not get mimized’ is closed to new replies.