foundation-apps icon indicating copy to clipboard operation
foundation-apps copied to clipboard

Feature/css condense

Open tatemz opened this issue 10 years ago • 4 comments

See #440

tatemz avatar Feb 16 '15 15:02 tatemz

What's the purpose of running the uncompressed file through css-condense? Is it just for stripping out comments?

gakimball avatar Feb 16 '15 17:02 gakimball

We can leave comments in as well. Primarily, it condenses media queries (though performance doesn't really matter on a build version).

tatemz avatar Feb 16 '15 17:02 tatemz

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.

gakimball avatar Feb 16 '15 17:02 gakimball

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

tatemz avatar Feb 16 '15 17:02 tatemz