Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Adding uncss option to gruntfile #131

Closed
tirnovanuaurel opened this issue Oct 13, 2014 · 2 comments
Closed

Adding uncss option to gruntfile #131

tirnovanuaurel opened this issue Oct 13, 2014 · 2 comments

Comments

@tirnovanuaurel
Copy link

Hi, would be nice to have uncss option into grunt build. Right now, a 9 pages site will load a 170kb css file.
Tried adapting http://www.gladdy.uk/blog/2014/04/13/using-uncss-and-grunt-uncss-with-wordpress/ but result was a empty file so if any have a clue or did it already, please share the gruntfile.
Thanks.

@tirnovanuaurel
Copy link
Author

@olefredrik
Copy link
Owner

Nice one. However, I would like to keep the theme plugin independent. That said, I recommend everybody to load only the Foundation modules that will actually be used in each project. This is done by adding a // to line 7 in app.scss and uncomment the modules below that will be used. This will shave the size of your css file significantly.

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