new Compiler(context, options?): CompilerAttributes
context:
<string>the compilation path
options:
<WebpackOptionsNormalized>options
Returns:
<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>signals when the compiler closes
Returns:
{void}
compile(callback): voidcallback{CallbackWebpackFunction_2< Compilation, void >} signals when the compilation finishes- Returns: {void}
createChildCompiler(compilation, compilerName, compilerIndex, outputOptions?, plugins?): CompilerAttributes
compilation:
<Compilation>the compilation
compilerName:
<string>the compiler's name
compilerIndex:
<number>the compiler's index
outputOptions:
{Partial< OutputNormalized >} the output options
plugins:
<WebpackPluginInstance>
|
<object>
|
<null>
|
<undefined[]>the plugins to apply
Returns:
<Compiler>a child compiler
createCompilation(params): voidparams{CompilationParams} the compilation parameters- Returns:
<Compilation>compilation
createContextModuleFactory(): ContextModuleFactoryReturns:
<ContextModuleFactory>createNormalModuleFactory(): NormalModuleFactoryReturns:
<NormalModuleFactory>emitAssets(compilation, callback): voidAttributes
compilation:
<Compilation>the compilation
callback:
<object>signals when the assets are emitted
Returns:
{void}
emitRecords(callback): voidAttributes
callback:
<object>signals when the call finishes
Returns:
{void}
getCache(name): CacheFacadeAttributes
name:
<string>cache name
Returns:
<CacheFacade>the cache facade instance
getInfrastructureLogger(name): WebpackLoggerAttributes
Returns:
{WebpackLogger} a logger with that name
isChild(): booleanReturns:
<boolean>Compilation(params): voidparams{CompilationParams} the compilation parameters- Returns:
<Compilation>the created compilation
CompilationParams(): objectReturns:
<object>purgeInputFileSystem(): voidReturns:
{void}
readRecords(callback): voidAttributes
callback:
<object>signals when the call finishes
Returns:
{void}
M
run
run(callback): voidcallback{CallbackWebpackFunction_2< Stats, void >} signals when the call finishes- Returns: {void}
runAsChild(callback): voidAttributes
callback:
<object>signals when the call finishes
Returns:
{void}
validate(schema, value, options?, check?): voidAttributes
Returns:
{void}
Schema validation function with optional pre-compiled check
watch(watchOptions, handler): Watching | undefinedAttributes
watchOptions:
<WatchOptions>the watcher's options
handler:
{CallbackWebpackFunction_2< Stats, void >} signals when the call finishes
Returns:
<Watching>
|
<undefined>a compiler watcher