On this page

new MultiCompiler(compilers, options): MultiCompiler
Attributes
compilers:Compiler[] | Record<string, Compiler>

Creates an instance of MultiCompiler.

Type:Compiler[]
Type:Object
Type:SyncHook<[MultiStats]>
Type:MultiHook<SyncBailHook<[string, string, undefined | any[]], true | void>>
Type:MultiHook<SyncHook<[null | string, number]>>
Type:MultiHook<AsyncSeriesHook<[Compiler]>>
Type:SyncHook<[]>
Type:MultiHook<AsyncSeriesHook<[Compiler]>>

Sets input file system.

Sets intermediate file system.

Sets output file system.

Type:boolean

Sets watch file system.

Type:string
multiCompiler.close(callback): void
Attributes
callback:(err: Error | null, result?: void) => void

Processes the provided error callback.

multiCompiler.getInfrastructureLogger(name): WebpackLogger
Attributes
name:string | (() => string)

Gets infrastructure logger.

multiCompiler.purgeInputFileSystem(): void
multiCompiler.run(callback): void
Attributes

Processes the provided multi stat.

multiCompiler.runWithDependencies(compilers, fn, callback): void
Stability: 0Deprecated: This method should have been private
Attributes
compilers:Compiler[]
fn:(compiler: Compiler, callback: CallbackWebpackFunction_2<MultiStats, void>) => void

Run with dependencies.

multiCompiler.setDependencies(compiler, dependencies): void
Attributes
compiler:Compiler
dependencies:string[]

Updates dependencies using the provided compiler.

multiCompiler.validateDependencies(callback): boolean
Attributes

Validate dependencies.

multiCompiler.watch(watchOptions, handler): MultiWatching | undefined
Attributes

Returns a compiler watcher.