Class: ContextReplacementPlugin
Defined in: webpack/types.d.ts:3693Constructors
Constructor
new ContextReplacementPlugin(Defined in: webpack/types.d.ts:3694resourceRegExp,newContentResource?,newContentRecursive?,newContentRegExp?):ContextReplacementPlugin
Parameters
resourceRegExp
RegExp
newContentResource?
string | boolean | RegExp | (context) => void
newContentRecursive?
boolean | RegExp | NewContentCreateContextMap
newContentRegExp?
RegExp
Returns
ContextReplacementPlugin
Properties
newContentCallback()?
Defined in: webpack/types.d.ts:3705optionalnewContentCallback: (context) =>void
Parameters
context
AfterContextResolveData | BeforeContextResolveData
Returns
void
newContentCreateContextMap()?
Defined in: webpack/types.d.ts:3709optionalnewContentCreateContextMap: (fs,callback) =>void
Parameters
fs
InputFileSystem
callback
(err, newContentRecursive) => void
Returns
void
newContentRecursive?
Defined in: webpack/types.d.ts:3716optionalnewContentRecursive:boolean
newContentRegExp?
Defined in: webpack/types.d.ts:3717optionalnewContentRegExp:RegExp
newContentResource?
Defined in: webpack/types.d.ts:3708optionalnewContentResource:string
resourceRegExp
resourceRegExp: RegExp
Defined in: webpack/types.d.ts:3704
Methods
apply()
apply(Defined in: webpack/types.d.ts:3722 Apply the plugincompiler):void
Parameters
compiler
Compiler
Returns
void