On this page

new IgnorePlugin(options): IgnorePlugin
Attributes
IgnorePlugin options
Returns:IgnorePlugin

Creates an instance of IgnorePlugin.

Attributes
apply(compiler): void
Attributes
compiler:Compiler
the compiler instance
Returns:void

Applies the plugin by registering its hooks on the compiler.


checkIgnore(resolveData): false | undefined
Attributes
resolve data
Returns:false | undefined
returns false when the request should be ignored, otherwise undefined

Note that if "contextRegExp" is given, both the "resourceRegExp" and "contextRegExp" have to match.

Type:{ contextRegExp?: RegExp; resourceRegExp: RegExp } | { checkResource: (resource: string, context: string) => boolean }

{ contextRegExp?: RegExp; resourceRegExp: RegExp }

Attributes
contextRegExp:RegExp
A RegExp to test the context (directory) against.
resourceRegExp:RegExp
A RegExp to test the request against.

{ checkResource: (resource: string, context: string) => boolean }

Attributes
checkResource:(resource: string, context: string) => boolean
A filter function for resource and context.