Skip to content

Latest commit

 

History

History
79 lines (65 loc) · 2.2 KB

File metadata and controls

79 lines (65 loc) · 2.2 KB

API Report File for "@angular-devkit/build-webpack"

Do not edit this file. It is a report generated by API Extractor.

import { BuilderContext } from '@angular-devkit/architect';
import { BuilderOutput } from '@angular-devkit/architect';
import { Observable } from 'rxjs';
import type webpack from 'webpack';
import type WebpackDevServer from 'webpack-dev-server';

// @public (undocumented)
export type BuildResult = BuilderOutput & {
    emittedFiles?: EmittedFiles[];
    webpackStats?: webpack.StatsCompilation;
    outputPath: string;
};

// @public (undocumented)
export type DevServerBuildOutput = BuildResult & {
    port: number;
    family: string;
    address: string;
};

// @public (undocumented)
export interface EmittedFiles {
    // (undocumented)
    asset?: boolean;
    // (undocumented)
    extension: string;
    // (undocumented)
    file: string;
    // (undocumented)
    id?: string;
    // (undocumented)
    initial: boolean;
    // (undocumented)
    name?: string;
}

// @public (undocumented)
export function runWebpack(config: webpack.Configuration, context: BuilderContext, options?: {
    logging?: WebpackLoggingCallback;
    webpackFactory?: WebpackFactory;
    shouldProvideStats?: boolean;
}): Observable<BuildResult>;

// @public (undocumented)
export function runWebpackDevServer(config: webpack.Configuration, context: BuilderContext, options?: {
    shouldProvideStats?: boolean;
    devServerConfig?: WebpackDevServer.Configuration;
    logging?: WebpackLoggingCallback;
    webpackFactory?: WebpackFactory;
    webpackDevServerFactory?: WebpackDevServerFactory;
}): Observable<DevServerBuildOutput>;

// @public (undocumented)
export type WebpackBuilderSchema = Schema;

// @public (undocumented)
export type WebpackDevServerFactory = typeof WebpackDevServer;

// @public (undocumented)
export interface WebpackFactory {
    // (undocumented)
    (config: webpack.Configuration): Observable<webpack.Compiler | null> | webpack.Compiler | null;
}

// @public (undocumented)
export interface WebpackLoggingCallback {
    // (undocumented)
    (stats: webpack.Stats, config: webpack.Configuration): void;
}

// (No @packageDocumentation comment for this package)