36 lines
1.5 KiB
TypeScript
Executable file
36 lines
1.5 KiB
TypeScript
Executable file
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
import { BuilderContext, BuilderOutput } from '@angular-devkit/architect';
|
|
import { WebpackLoggingCallback } from '@angular-devkit/build-webpack';
|
|
import { json } from '@angular-devkit/core';
|
|
import { Observable } from 'rxjs';
|
|
import webpack from 'webpack';
|
|
import { ExecutionTransformer } from '../transforms';
|
|
import { IndexHtmlTransform } from '../utils/index-file/index-html-generator';
|
|
import { Schema as BrowserBuilderSchema } from './schema';
|
|
/**
|
|
* @experimental Direct usage of this type is considered experimental.
|
|
*/
|
|
export declare type BrowserBuilderOutput = json.JsonObject & BuilderOutput & {
|
|
baseOutputPath: string;
|
|
outputPaths: string[];
|
|
/**
|
|
* @deprecated in version 9. Use 'outputPaths' instead.
|
|
*/
|
|
outputPath: string;
|
|
};
|
|
/**
|
|
* @experimental Direct usage of this function is considered experimental.
|
|
*/
|
|
export declare function buildWebpackBrowser(options: BrowserBuilderSchema, context: BuilderContext, transforms?: {
|
|
webpackConfiguration?: ExecutionTransformer<webpack.Configuration>;
|
|
logging?: WebpackLoggingCallback;
|
|
indexHtml?: IndexHtmlTransform;
|
|
}): Observable<BrowserBuilderOutput>;
|
|
declare const _default: import("@angular-devkit/architect/src/internal").Builder<json.JsonObject & BrowserBuilderSchema>;
|
|
export default _default;
|