On this page

new Compiler(context, options?): Compiler
Attributes
Returns:<Compiler>

Creates an instance of Compiler.

close(callback): void
Attributes
callback:<object>
Returns:
{void}

Processes the provided error callback.


compile(callback): void
  • callback <CallbackWebpackFunction_2><<Compilation>, <void>>
  • Returns: {void}

Processes the provided compilation.


createChildCompiler(compilation, compilerName, compilerIndex, outputOptions?, plugins?): Compiler
Attributes
compilation:<Compilation>
compilerName:<string>
compilerIndex:<number>
outputOptions:
<Partial> < <OutputNormalized> >
plugins:
<false> | <""> | <0> | <WebpackPluginInstance> | <object> | <null> | <undefined> []
Returns:<Compiler>

Creates a child compiler.


createCompilation(params): void

Creates a compilation.


createContextModuleFactory(): ContextModuleFactory

createNormalModuleFactory(): NormalModuleFactory

emitAssets(compilation, callback): void
Attributes
compilation:<Compilation>
callback:<object>
Returns:
{void}

Processes the provided compilation.


emitRecords(callback): void
Attributes
callback:<object>
Returns:
{void}

Processes the provided error callback.


getCache(name): CacheFacade
Attributes

Returns the cache facade instance.


getInfrastructureLogger(name): WebpackLogger
Attributes
Returns:
{WebpackLogger}

Gets infrastructure logger.


isChild(): boolean
Returns:<boolean>

Compilation(params): void

Returns the created compilation.


CompilationParams(): object
Returns:<object>

purgeInputFileSystem(): void
Returns:
{void}

readRecords(callback): void
Attributes
callback:<object>
Returns:
{void}

Processes the provided error callback.


run(callback): void
  • callback <CallbackWebpackFunction_2><<Stats>, <void>>
  • Returns: {void}

Processes the provided stat.


runAsChild(callback): void
Attributes
callback:<object>
Returns:
{void}

Processes the provided run as child callback.


validate(schema, value, options?, check?): void
  • schema <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 | undefined
Attributes
watchOptions:<WatchOptions>
handler:
<CallbackWebpackFunction_2> < <Stats> , <void> >

Returns a compiler watcher.