Ilya Kantor
a9d465f183
IgnorePlugin: add context argument to checkResource, deprecate checkContext
2018-12-18 11:27:06 +03:00
Tobias Koppers
1f6b92de3e
use declarations from schemas in plugins
2018-09-21 11:04:28 +02: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
559cf94edb
Simplify imports
2018-07-09 15:09:00 +02:00
byzyk
a96ac96780
add type for resource and context
2018-06-21 14:53:41 +04:00
byzyk
4c3f04a7cf
result -> TODO
2018-06-21 14:47:15 +04:00
byzyk
36a7f8d4cb
make properties private
2018-06-21 14:45:33 +04:00
byzyk
306f5c2d75
add types
2018-06-21 14:28:20 +04:00
Tobias Koppers
5238159d21
run prettier on existing code
2018-02-25 02:00:20 +01:00
Florent Cailhol
d16ccc9c6f
Use tap() instead of tapAsync() when possible
2017-12-14 15:11:56 +01:00
Florent Cailhol
f737b26260
Remove some plugin calls
2017-12-14 14:42:49 +01:00
Florent Cailhol
36c690d37f
Use tapable instead of 'plugin'
2017-12-08 14:23:31 +01:00
Tobias Koppers
a27ef326d5
Upgrade tapable in ModuleFactories
2017-11-28 09:54:24 +01:00
Martin Veith
aa172f0a35
Fix typo in IgnorePlugin
2017-04-25 22:07:43 +02:00
Tim Sebastian
e41c0f0485
remove unnecessary param
2017-04-08 23:42:10 +10:00
Tim Sebastian
8ad4a2004e
unite logic for "normal-module-factory" and "context-module-factory"
2017-04-08 15:59:23 +10:00
Dean Coakley
c4835a48dd
Fix trailing space
2017-04-08 15:59:23 +10:00
Dean Coakley
2baa5c3367
Add regexp for IgnorePlugin
2017-04-08 15:59:23 +10:00
Tim Sebastian
30a4e3614f
use const where applicable in IgnorePlugin
2017-02-05 10:28:53 +11:00
Adam Markon
5f6029f081
refactor(es6): refactor IgnorePlugin to ES6 class ( #3638 )
2016-12-30 17:17:33 -06:00
Tobias Koppers
f7d799adb4
rebeautify without spacing after keyword
2015-07-16 00:19:23 +02:00
Avi Haiat
0a340f2b1a
feat(app): Beautify all lib files
2015-07-13 01:20:09 +03:00
Avi Haiat
daff7440a6
feat(app): Fix some obvious lint errors and warnings
2015-07-08 15:52:41 +03:00
Tobias Koppers
1c0a0621f6
added contextRegExp to IgnorePlugin
2014-05-26 11:36:47 +02:00
Tobias Koppers
7a665410ca
added IgnorePlugin, fixed replacement plugins
2013-11-05 18:19:04 +01:00