UNPKG

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