Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

broccoli-empty-files

zackthehuman192MIT0.0.1

Broccoli plugin that removes empty files

broccoli-plugin, javascript

readme

broccoli-empty-files

Build Status

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 to false.