-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support a filter option to exclude particular files
We're using require-dir to load a directory of gulp tasks. However, we want to be able to exclude certain files from being required when executed in a production environment as they include dependencies that might not be installed. Being able to apply a filter like `function (f) { return process.env.NODE_ENV !== 'production' && !f.match(/$dev/); }` would mean we can just ignore any dev-only task from the directory when run in a prod environment.
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters