new Compiler(context, options?): Compiler
Attributes
Creates an instance of Compiler.
Source Code: lib/Compiler.js#L346Type:
CacheType:
stringType:
stringType:
Map<string, "ignore" | EntryTypesIndex | OnlySafeTimeEntry | ExistenceOnlyTimeEntryTypesIndex | null>Type:
Map<string, "ignore" | EntryTypesIndex | OnlySafeTimeEntry | ExistenceOnlyTimeEntryTypesIndex | null>Type:
numberType:
ObjectType:
AsyncSeriesHook<[]>Type:
AsyncSeriesHook<[Compilation]>Type:
SyncHook<[Stats]>Type:
AsyncSeriesHook<[Compilation]>Type:
SyncHook<[]>Type:
SyncHook<[Compiler]>Type:
SyncHook<[Compiler]>Type:
AsyncSeriesHook<[string, AssetEmittedInfo]>Type:
AsyncSeriesHook<[CompilationParams]>Type:
AsyncSeriesHook<[Compiler]>Type:
SyncHook<[Compilation, CompilationParams]>Type:
SyncHook<[CompilationParams]>Type:
SyncHook<[ContextModuleFactory]>Type:
AsyncSeriesHook<[Stats]>Type:
AsyncSeriesHook<[Compilation]>Type:
AsyncSeriesHook<[]>Type:
SyncBailHook<[string, EntryNormalized], boolean | void>Type:
SyncHook<[]>Type:
SyncHook<[Error]>Type:
AsyncParallelHook<[Compilation]>Type:
SyncHook<[]>Type:
AsyncParallelHook<[Compilation]>Type:
SyncHook<[NormalModuleFactory]>Type:
AsyncSeriesHook<[]>Type:
AsyncSeriesHook<[Compiler]>Type:
SyncBailHook<[Compilation], boolean | void>Type:
AsyncSeriesHook<[]>Type:
SyncHook<[Compilation, CompilationParams]>Type:
SyncHook<[]>Type:
SyncHook<[]>Type:
AsyncSeriesHook<[Compiler]>Type:
booleancompiler.infrastructureLogger(value, type, args?): void
Attributes
Type:
InputFileSystem | nullType:
IntermediateFileSystem | nullType:
ReadonlySet<string>Type:
Map<Module, ModuleMemCachesItem>Type:
stringType:
OutputFileSystem | nullType:
stringType:
CompilationType:
Readonly<PlatformTargetProperties>Type:
RecordsType:
ReadonlySet<string>Type:
RequestShortenerType:
ResolverFactoryType:
CompilerType:
booleanType:
WatchFileSystem | nullType:
WatchingType:
booleanType:
typeof exportscompiler.close(callback): void
Attributes
Processes the provided error callback.
compiler.compile(callback): void
Attributes
callback:
CallbackWebpackFunction_2<Compilation, void>Processes the provided compilation.
compiler.createChildCompiler(compilation, compilerName, compilerIndex, outputOptions?, plugins?): Compiler
Attributes
compilation:
CompilationcompilerName:
stringcompilerIndex:
numberoutputOptions:
Partial<OutputNormalized>Returns:
CompilerCreates a child compiler.
compiler.createCompilation(params): Compilation
Attributes
params:
CompilationParamsReturns:
CompilationCreates a compilation.
compiler.createContextModuleFactory(): ContextModuleFactory
Returns:
ContextModuleFactorycompiler.createNormalModuleFactory(): NormalModuleFactory
Returns:
NormalModuleFactorycompiler.emitAssets(compilation, callback): void
Attributes
compilation:
CompilationProcesses the provided compilation.
compiler.emitRecords(callback): void
Attributes
Processes the provided error callback.
compiler.getCache(name): CacheFacade
Attributes
name:
stringReturns:
CacheFacadeReturns the cache facade instance.
compiler.getInfrastructureLogger(name): WebpackLogger
Attributes
Returns:
WebpackLoggerGets infrastructure logger.
compiler.isChild(): boolean
Returns:
booleancompiler.newCompilation(params): Compilation
Attributes
params:
CompilationParamsReturns:
CompilationReturns the created compilation.
compiler.newCompilationParams(): { contextModuleFactory: ContextModuleFactory; normalModuleFactory: NormalModuleFactory }
Returns:
{ contextModuleFactory: ContextModuleFactory; normalModuleFactory: NormalModuleFactory }compiler.purgeInputFileSystem(): void
compiler.readRecords(callback): void
Attributes
Processes the provided error callback.
compiler.run(callback): void
Attributes
callback:
CallbackWebpackFunction_2<Stats, void>Processes the provided stat.
compiler.runAsChild(callback): void
Attributes
callback:
(err: Error | null, entries?: Chunk[], compilation?: Compilation) => voidProcesses the provided run as child callback.
compiler.validate(schema, value, options?, check?): void
Attributes
Schema validation function with optional pre-compiled check
compiler.watch(watchOptions, handler): Watching | undefined
Attributes
Returns a compiler watcher.