1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | import { BuilderContext, BuilderOutput } from '@angular-devkit/architect';
|
---|
9 | import { Observable } from 'rxjs';
|
---|
10 | import webpack from 'webpack';
|
---|
11 | import { EmittedFiles } from '../utils';
|
---|
12 | import { Schema as RealWebpackBuilderSchema } from './schema';
|
---|
13 | export declare type WebpackBuilderSchema = RealWebpackBuilderSchema;
|
---|
14 | export interface WebpackLoggingCallback {
|
---|
15 | (stats: webpack.Stats, config: webpack.Configuration): void;
|
---|
16 | }
|
---|
17 | export interface WebpackFactory {
|
---|
18 | (config: webpack.Configuration): Observable<webpack.Compiler> | webpack.Compiler;
|
---|
19 | }
|
---|
20 | export declare type BuildResult = BuilderOutput & {
|
---|
21 | emittedFiles?: EmittedFiles[];
|
---|
22 | webpackStats?: webpack.StatsCompilation;
|
---|
23 | outputPath: string;
|
---|
24 | };
|
---|
25 | export declare function runWebpack(config: webpack.Configuration, context: BuilderContext, options?: {
|
---|
26 | logging?: WebpackLoggingCallback;
|
---|
27 | webpackFactory?: WebpackFactory;
|
---|
28 | shouldProvideStats?: boolean;
|
---|
29 | }): Observable<BuildResult>;
|
---|
30 | declare const _default: import("@angular-devkit/architect/src/internal").Builder<RealWebpackBuilderSchema & import("../../../core/src").JsonObject>;
|
---|
31 | export default _default;
|
---|