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

Manage it, here's a gist to the gruntfile:
https://gist.github.com/tirnovanuaurel/97b81004a07ab3a0af40
The plugin to create sitemap here: https://github.com/phoenixMag00/JSON-Sitemap-Generator-for-Grunt-UnCSS-with-WordPress/blob/master/grunt-plugin.php

Windows users add curl to path.

@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