Clean empty files and folders.
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-cleanempty --save-dev
The "cleanempty" task
In your project's Gruntfile, add a section named
cleanempty to the data object passed into
Remove empty files or not.
Remove empty folders or not.
Override the task from blocking deletion of folders outside current working dir (CWD). Use with caution.
Consider folders that only have junk files in them to be empty. Use in conjunction with
options.folders set to
- switch to asynchronous file system functions to better support grunt-concurrent
- 1.0.4 supports grunt
- 1.0.3 added
- 1.0.2 performance enhancement
- 1.0.1 tweaked log verbosity
- 1.0.0 release
- 0.2.1 added tests
- 0.2.0 added
- 0.1.0 initial release