• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Not a bug Minify css doesn't remove line breaks


Well-known member
I'm not sure if this is a bug or by design, but I'll post it here anyway.
The minify css option doesn't remove line breaks from the code.
Removing line breaks would reduce the filesize a little bit more.


Well-known member
Problem would be that Minify isn't a component of Xenforo. I'm sure if it needed to be modified to suit there purposes it will or has been. But it is its own maintained project.


XenForo developer
Staff member
Indeed, we're just using a library for this. It's pretty limited regex based approach as well. It appears that to some degree line breaks are intentional:
// separate common descendent selectors w/ newlines (to limit line lengths)
Bear in mind that it's still gzipped as well, so the difference will probably be fairly minimal.