Commit Graph

7 Commits

Author SHA1 Message Date
Tobias Koppers 75a9a515fd fix prettierignore file and run prettier 2019-02-18 09:23:08 +01:00
Tobias Koppers 6c22ca2b96 fix issue when contextRegExp is undefined
fixes #8522
2018-12-20 16:52:44 +01:00
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
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
Tobias Koppers 32ebbfd7c7 Beautify webpack configs 2018-01-22 08:51:35 +01:00
EugeneHlushko 9355b5c430 Feature: Use WebpackMissingModule: test coverage: add relative file read path 2017-12-20 12:38:36 +02:00
EugeneHlushko 084c82edab Feature: Use WebpackMissingModule: test coverage 2017-12-19 19:48:26 +02:00