foundation-apps
foundation-apps copied to clipboard
Feature/css condense
See #440
What's the purpose of running the uncompressed file through css-condense? Is it just for stripping out comments?
We can leave comments in as well. Primarily, it condenses media queries (though performance doesn't really matter on a build
version).
Actually, I'd like the CSS-style comments to be stripped out as well if that's possible. We're looking to get into automatically-generated documentation, and for doing HTML-specific documentation we might use Hologram, which requires you to use CSS-style comments to enclose documentation.
I was actually looking for a CSS minifying tool that would just strip out comments and not do any other compression. Sass won't remove them unless it's also compressing the file.
That'd be a good feature. Along with stripping out comments, css-condense
does rearrange the order of sass styles that are imported due to the fact that it assumes media queries should be at the bottom of the stylesheet. It also reorders the selectors in by order of character limits (a
takes less processing than div
and therefore should be first to end a query sooner).