[6a3a178] | 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 } from '@angular-devkit/architect';
|
---|
| 9 | import { DevServerBuildOutput, WebpackLoggingCallback } from '@angular-devkit/build-webpack';
|
---|
| 10 | import { json } from '@angular-devkit/core';
|
---|
| 11 | import { Observable } from 'rxjs';
|
---|
| 12 | import webpack from 'webpack';
|
---|
| 13 | import { ExecutionTransformer } from '../transforms';
|
---|
| 14 | import { IndexHtmlTransform } from '../utils/index-file/index-html-generator';
|
---|
| 15 | import { Schema } from './schema';
|
---|
| 16 | export declare type DevServerBuilderOptions = Schema & json.JsonObject;
|
---|
| 17 | /**
|
---|
| 18 | * @experimental Direct usage of this type is considered experimental.
|
---|
| 19 | */
|
---|
| 20 | export declare type DevServerBuilderOutput = DevServerBuildOutput & {
|
---|
| 21 | baseUrl: string;
|
---|
| 22 | };
|
---|
| 23 | /**
|
---|
| 24 | * Reusable implementation of the Angular Webpack development server builder.
|
---|
| 25 | * @param options Dev Server options.
|
---|
| 26 | * @param context The build context.
|
---|
| 27 | * @param transforms A map of transforms that can be used to hook into some logic (such as
|
---|
| 28 | * transforming webpack configuration before passing it to webpack).
|
---|
| 29 | *
|
---|
| 30 | * @experimental Direct usage of this function is considered experimental.
|
---|
| 31 | */
|
---|
| 32 | export declare function serveWebpackBrowser(options: DevServerBuilderOptions, context: BuilderContext, transforms?: {
|
---|
| 33 | webpackConfiguration?: ExecutionTransformer<webpack.Configuration>;
|
---|
| 34 | logging?: WebpackLoggingCallback;
|
---|
| 35 | indexHtml?: IndexHtmlTransform;
|
---|
| 36 | }): Observable<DevServerBuilderOutput>;
|
---|
| 37 | declare const _default: import("@angular-devkit/architect/src/internal").Builder<Schema & json.JsonObject>;
|
---|
| 38 | export default _default;
|
---|