broccoli-empty-files
v0.0.1
Published
Broccoli plugin that removes empty files
Downloads
37
Maintainers
Readme
broccoli-empty-files
Remove empty or whitespace-only files from a tree. This plugin is also cache aware, so identical input trees are just symlinked between builds.
Installation
npm install --save-dev broccoli-empty-files
Usage
var removeEmpty = require('broccoli-empty-files');
var noEmptyFiles = removeEmpty(inputNode);
var noEmptyOrWhitespaceFiles = removeEmpty(inputNode, { ignoreWhitespace: true });
Options
ignoreWhitespace
: A boolean indicating whether to filter out files which contain only whitespace. Defaults tofalse
.