• 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

rellect

Well-known member
#1
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.
 

rainmotorsports

Well-known member
#2
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.
 

Mike

XenForo developer
Staff member
#3
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:
Code:
// 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.