Optional
This filter is used to do a pre-test to determine whether the hook should be called.
Include all ids that contain node_modules in the path.
id
node_modules
{ id: '**'+'/node_modules/**' } Copy
{ id: '**'+'/node_modules/**' }
Include all ids that contain node_modules or src in the path.
src
{ id: ['**'+'/node_modules/**', '**'+'/src/**'] } Copy
{ id: ['**'+'/node_modules/**', '**'+'/src/**'] }
Include all ids that start with http
http
{ id: /^http/ } Copy
{ id: /^http/ }
Exclude all ids that contain node_modules in the path.
{ id: { exclude: '**'+'/node_modules/**' } } Copy
{ id: { exclude: '**'+'/node_modules/**' } }
Formal pattern to define includes and excludes.
{ id : { include: ['**'+'/foo/**', /bar/], exclude: ['**'+'/baz/**', /qux/]}} Copy
{ id : { include: ['**'+'/foo/**', /bar/], exclude: ['**'+'/baz/**', /qux/]}}
This filter is used to do a pre-test to determine whether the hook should be called.