filterify
Selectively run browserify transforms based on a filter
Installation
npm install filterify
API Usage
filterify exports a function that takes a config argument with two params:
transform
: a browserify transformfilter
: used to decide whether to execute the transform on given file. It can be one of:- a function that takes a filename and returns a boolean
- a string that must occur verbatim in the filename
- a regex that must match the filename
- an array of valid filters
It returns a browserify transfom.
Example usage
To run envify with different environments for different parts of the project (where b
is a browserify instance):
var filterify = ;var envify = ;b;b;
CLI Usage
Not yet supported.