UNPKG

1.5 kBTypeScriptView Raw
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 */
8import { BuilderContext, BuilderOutput } from '@angular-devkit/architect';
9import { WebpackLoggingCallback } from '@angular-devkit/build-webpack';
10import { json } from '@angular-devkit/core';
11import { Observable } from 'rxjs';
12import webpack from 'webpack';
13import { ExecutionTransformer } from '../transforms';
14import { IndexHtmlTransform } from '../utils/index-file/index-html-generator';
15import { Schema as BrowserBuilderSchema } from './schema';
16/**
17 * @experimental Direct usage of this type is considered experimental.
18 */
19export declare type BrowserBuilderOutput = json.JsonObject & BuilderOutput & {
20 baseOutputPath: string;
21 outputPaths: string[];
22 /**
23 * @deprecated in version 9. Use 'outputPaths' instead.
24 */
25 outputPath: string;
26};
27/**
28 * @experimental Direct usage of this function is considered experimental.
29 */
30export declare function buildWebpackBrowser(options: BrowserBuilderSchema, context: BuilderContext, transforms?: {
31 webpackConfiguration?: ExecutionTransformer<webpack.Configuration>;
32 logging?: WebpackLoggingCallback;
33 indexHtml?: IndexHtmlTransform;
34}): Observable<BrowserBuilderOutput>;
35declare const _default: import("@angular-devkit/architect/src/internal").Builder<json.JsonObject & BrowserBuilderSchema>;
36export default _default;