new Compiler(context, options?): CompilerAttributes
context:
<string>options:
<WebpackOptionsNormalized>Returns:
<Compiler>Creates an instance of Compiler.
cache{CacheClass}compilerPath<string>context<string>contextTimestamps<Map><<string>,<"ignore">|<EntryTypesIndex>|<OnlySafeTimeEntry>|<ExistenceOnlyTimeEntryTypesIndex>|<null>>fileTimestamps<Map><<string>,<"ignore">|<EntryTypesIndex>|<OnlySafeTimeEntry>|<ExistenceOnlyTimeEntryTypesIndex>|<null>>fsStartTime<number>hooks<Readonly><<object>>idle<boolean>immutablePaths<Set><<string>|<RegExp>>infrastructureLogger<object>inputFileSystem<InputFileSystem>|<null>intermediateFileSystem<IntermediateFileSystem>|<null>managedPaths<Set><<string>|<RegExp>>modifiedFiles<ReadonlySet><<string>>moduleMemCaches<Map><<Module>,<ModuleMemCachesItem>>name<string>options<WebpackOptionsNormalized>outputFileSystem<OutputFileSystem>|<null>outputPath<string>parentCompilation<Compilation>platform<Readonly><<PlatformTargetProperties>>records{Records}recordsInputPath<string>|<null>recordsOutputPath<string>|<null>removedFiles<ReadonlySet><<string>>requestShortener{RequestShortener}resolverFactory<ResolverFactory>root<Compiler>running<boolean>unmanagedPaths<Set><<string>|<RegExp>>watchFileSystem<WatchFileSystem>|<null>watching<Watching>watchMode<boolean>webpack{exports}
close(callback): voidAttributes
callback:
<object>Returns:
{void}
Processes the provided error callback.
compile(callback): voidcallback<CallbackWebpackFunction_2><<Compilation>,<void>>- Returns: {void}
Processes the provided compilation.
createChildCompiler(compilation, compilerName, compilerIndex, outputOptions?, plugins?): CompilerAttributes
compilation:
<Compilation>compilerName:
<string>compilerIndex:
<number>outputOptions:
<Partial>
<
<OutputNormalized>
>plugins:
Returns:
<Compiler>Creates a child compiler.
createCompilation(params): voidparams{CompilationParams}- Returns:
<Compilation>
Creates a compilation.
createContextModuleFactory(): ContextModuleFactoryReturns:
<ContextModuleFactory>createNormalModuleFactory(): NormalModuleFactoryReturns:
<NormalModuleFactory>emitAssets(compilation, callback): voidAttributes
compilation:
<Compilation>callback:
<object>Returns:
{void}
Processes the provided compilation.
emitRecords(callback): voidAttributes
callback:
<object>Returns:
{void}
Processes the provided error callback.
getCache(name): CacheFacadeAttributes
name:
<string>Returns:
<CacheFacade>Returns the cache facade instance.
getInfrastructureLogger(name): WebpackLoggerAttributes
Returns:
{WebpackLogger}
Gets infrastructure logger.
isChild(): booleanReturns:
<boolean>Compilation(params): voidparams{CompilationParams}- Returns:
<Compilation>
Returns the created compilation.
CompilationParams(): objectReturns:
<object>purgeInputFileSystem(): voidReturns:
{void}
readRecords(callback): voidAttributes
callback:
<object>Returns:
{void}
Processes the provided error callback.
M
run
run(callback): voidcallback<CallbackWebpackFunction_2><<Stats>,<void>>- Returns: {void}
Processes the provided stat.
runAsChild(callback): voidAttributes
callback:
<object>Returns:
{void}
Processes the provided run as child callback.
validate(schema, value, options?, check?): voidschema<JSONSchema4>|<ExtendedSchema>|<JSONSchema6>|<ExtendedSchema>|<JSONSchema7>|<ExtendedSchema>|<object>value{T}options{ValidationErrorConfiguration}check<object>- Returns: {void}
Schema validation function with optional pre-compiled check
watch(watchOptions, handler): Watching | undefinedAttributes
watchOptions:
<WatchOptions>handler:
Returns:
<Watching>
|
<undefined>Returns a compiler watcher.