1. 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

Discussion in 'Resolved Bug Reports' started by rellect, Jan 25, 2014.

  1. rellect

    rellect 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.
  2. rainmotorsports

    rainmotorsports 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.
  3. Mike

    Mike 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.

Share This Page