Skip to content
This repository has been archived by the owner on Oct 25, 2021. It is now read-only.

UnCSS support #27

Closed
gour opened this issue Aug 14, 2017 · 3 comments
Closed

UnCSS support #27

gour opened this issue Aug 14, 2017 · 3 comments

Comments

@gour
Copy link

gour commented Aug 14, 2017

While looking at Foundation framework I see that it uses UnCSS to trim the final CSS from the unused CSS selectors which looks quite nice when optimizing assets' size, so I wonder what do you think about including support for UnCSS in Hugulp or it is already possible to do it easily?

@jbrodriguez
Copy link
Owner

hugulp is currently using clearcss.

Can't remember if uncss only removes unused styles or minifies as well.

If it's the former, it would be very simple to use both. If it's the later, it would mean a decision of dropping one in favor of the other.

@gour
Copy link
Author

gour commented Aug 14, 2017

Can't remember if uncss only removes unused styles or minifies as well.

Acccording to the docs: "UnCSS is a tool that removes unused CSS from your stylesheets."

If it's the former, it would be very simple to use both.

Any hint considering I'm total noob when it comes to that JS-builders... :-(

@jbrodriguez
Copy link
Owner

You would need to install uncss, then change the styles gulp task, to invoke uncss before this line

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants