Releases: uncss/grunt-uncss
v0.3.8 sovereign-spring
This is a minor maintenance release of Grunt UnCSS, which updates our dev-dependences and adds better graceful failure when no files or URLs are supplied as input.
Community coverage
- A screencast on using grunt-uncss from Karl Hadwen
0.3.7 forward telegram
The community around grunt-uncss
has continued growing lately, and we're thrilled to hear more and more people are using it to trim down their Bootstrap projects. We have a few pieces of news to share as part of this release.
Yeoman generator
A number of you have asked how to use grunt-uncss with Yeoman. To help, we've put together a new Yeoman generator generator-webapp-uncss with uncss support. It's based off generator-webapp
and works with both CSS and Sass.
To install and run the generator:
$ npm install --g generator-webapp-uncss && yo webapp-uncss
should do the trick. Quick preview of grunt-uncss running during grunt build
:
Interested in adding similar support to your own generator? Here are the specific changes you'll need.
A new release
0.3.7 is a maintenance release of grunt-uncss
, updating a number of our dependencies to their latest stable versions. To get it, run:
npm update grunt-uncss --save-dev
As per the last release, we've locked in the task to a stable version of UnCSS and will be updating to a more recent build once we consider them more reliable. @giakki is otherwise doing a fantastic job continuing to evolve the UnCSS module.
Another piece of news for this release is that @XhmikosR, who has been helping out pretty much everywhere on the project is now a co-maintainer. Please join me in welcoming this awesome human to the project!
More examples
Your biggest ask so far has been more examples of how to integrate grunt-uncss into different types of projects. Everything from static sites, to apps, to Wordpress.
To help, we've collected a few open-source examples of projects using the task and hope their setups provide some inspiration on how to fix removing unused CSS into your own workflows.
Sites
Apps
- GitHub Team Viewer - Angular app
- Angular Todo application
- CashSplitter - Angular app with PouchDB, Bootstrap
- This Week's Comics Express app
- Sample grunt-uncss in a Sass project
Other
If you have more examples you would like to share with the community, feel free to PR them and we'll consider adding them to the readme.
0.3.5
This patch release locks UnCSS to 0.8.1, the most recent version of the package we consider stable for production use. Dependency updates have also been made as part of this version.
grunt-uncss is now used by sites like HTML5Boilerplate.com as part of their Grunt build-process and is under consideration by Ubuntu.com for future removal of unused styles in their site builds.
v0.3.4
v0.3.0
- Update dependencies including
uncss
to 0.8.0 (the release from this week) - Enable
report
by default and switch to usingmaxmin
This release officially moves away from supporting Node 0.8. grunt-uncss
0.2.x should be used if you require a version of the project which still supports it.
How does UnCSS (and grunt-uncss) now remove unused rules?
The process by which UnCSS removes the unused rules is as follows:
- The HTML files are loaded by PhantomJS and JavaScript is executed.
- Used stylesheets are extracted from the resulting HTML.
- The stylesheets are concatenated and the rules are parsed by css-parse.
document.querySelector
filters out selectors that are not found in the HTML files.- The remaining rules are converted back to CSS.
0.2.2
v0.2.1
This version brings us in-line with the latest version of UnCSS and includes cleanup, minor docs improvements and refactoring.
- 01c4d9c Update dependencies.
- d99de31 Update readme. Added information about htmlroot option.
- 99eb81d Update package.json
- efdab15 Added reporting option.
- 4ed6c52 Force LF for tests/**/css.
- 6a066fa Update dependencies.
- ffcd0fc Move app in tests.
- 6c080e3 Remove unneeded main property from package.json.
- cbecbc5 Gruntfile.js: minor refactoring.
0.2.0
This update to the project includes a number of maintenance fixes as well as support for the latest stable version of uncss
. As always, thanks goes out to @giakki for working to improve the stability of the core module used by the project based on your feedback. User @XhmikosR has also helped out a bunch with this new release.
Upstream bugs fixed:
- More helpful error messages when CSS parsing fails
- Use spawn instead of execFile and limit the number of PhantomJS processes used.
- Reintroduced 0.8 support
- Other misch. fixes to improve stability
grunt-uncss
project maintenance patches:
- 37e6b9d Update dependencies.
- 390f597 Gruntfile.js: Fix connect, watch task.
- b434ba5 Gruntfile.js: simplify tasks.
- 3c35c84 Add time-grunt so that we see the time spent in Grunt tasks.
- c8619ee Tweak JSHint options and fix the warnings.
- fba952a Normalize package.json.
- 29ee178 Explicitly set the files when installing via npm.
- 635c0d9 Switch to david-dm.org for the dependencies.
Other news
- I've noticed quite a few Foundation users trying out
grunt-uncss
. One user went down from 142KB to 22KB with it. If you're using the task on your project, please feel free to file bugs to help us ensure max compatibility. - Now used in generator-zf5 - a Zurb Foundation generator for Yeoman.
0.1.9
v0.1.7
This is a patch release which resolves issues with grunt-uncss
breaking on OSX Mavericks and Ubuntu.
- Switched to the newly patched version of uncss, fixing issues experienced with PhantomJS on some platforms (thanks ag, giakki)
- Resolved timeouts and test issues with nthoftype cases (thanks to Ben Zörb)
- Fix breaking tests by switching to the older API now used (again, thanks Ben!)
eb62755 - Merge pull request #45 from bezoerb/#33 (5 minutes a