webpack/schemas/plugins
Kevin Purnelle 6235e99248 feat(IgnorePlugin): allow user to provide his own check functions
The user can provide checkResource and checkContext functions that
will be called with current resource or context respectively.

These functions should return a boolean to decide whether the module
should be ignored or not.

Now the constructor can accept a single option object.

```
const resourceRegExp = /a_regex/
const contextRegExp = /another_regex/

// before:
new webpack.IgnorePlugin(resourceRegExp, contextRegExp)

// alternative:
new webpack.ignorePlugin({resourceRegExp, contextRegExp})
```

Note that from Webpack 5, only passing an object will be allowed,
so we could encourage people to migrate already.
2018-08-14 17:20:10 +02:00
..
debug fix(schemas/plugins): rm unnecessary `id`'s 2018-02-21 06:58:39 +01:00
optimize add new options moduleIds and chunkIds 2018-07-09 15:06:19 +02:00
BannerPlugin.json Allow banner to be specified as a function 2018-05-10 18:19:32 +02:00
DllPlugin.json feat: support tree shaking in DllPlugin 2018-05-18 22:57:29 +03:00
DllReferencePlugin.json fix(schemas/plugins): rm unnecessary `id`'s 2018-02-21 06:58:39 +01:00
HashedModuleIdsPlugin.json fix(schemas/plugins): rm unnecessary `id`'s 2018-02-21 06:58:39 +01:00
IgnorePlugin.json feat(IgnorePlugin): allow user to provide his own check functions 2018-08-14 17:20:10 +02:00
LoaderOptionsPlugin.json fix(schemas/plugins): rm unnecessary `id`'s 2018-02-21 06:58:39 +01:00
SourceMapDevToolPlugin.json fix(schemas/plugins): rm unnecessary `id`'s 2018-02-21 06:58:39 +01:00
WatchIgnorePlugin.json fix(schemas/plugins): rm unnecessary `id`'s 2018-02-21 06:58:39 +01:00