source: trip-planner-front/node_modules/@angular-devkit/build-angular/src/dev-server/index.d.ts@ 6fe77af

Last change on this file since 6fe77af was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.7 KB
Line 
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 } from '@angular-devkit/architect';
9import { DevServerBuildOutput, 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 } from './schema';
16export declare type DevServerBuilderOptions = Schema & json.JsonObject;
17/**
18 * @experimental Direct usage of this type is considered experimental.
19 */
20export 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 */
32export declare function serveWebpackBrowser(options: DevServerBuilderOptions, context: BuilderContext, transforms?: {
33 webpackConfiguration?: ExecutionTransformer<webpack.Configuration>;
34 logging?: WebpackLoggingCallback;
35 indexHtml?: IndexHtmlTransform;
36}): Observable<DevServerBuilderOutput>;
37declare const _default: import("@angular-devkit/architect/src/internal").Builder<Schema & json.JsonObject>;
38export default _default;
Note: See TracBrowser for help on using the repository browser.