UNPKG

835 BTypeScriptView Raw
1import { BuilderContext, BuilderHandlerFn } from '@angular-devkit/architect';
2import { ExecutionTransformer } from '@angular-devkit/build-angular';
3import type { IndexHtmlTransform } from '@angular/build/src/utils/index-file/index-html-generator';
4import { Configuration } from 'webpack';
5import { json } from '@angular-devkit/core';
6export interface BrowserTargetOptions {
7 buildTarget?: string;
8 browserTarget?: string;
9}
10export type BuilderExecutor<O extends BrowserTargetOptions & json.JsonObject> = (options: O, context: BuilderContext, transforms?: {
11 webpackConfiguration?: ExecutionTransformer<Configuration>;
12 indexHtml?: IndexHtmlTransform;
13}) => any;
14export declare const executeBrowserBasedBuilder: <O extends BrowserTargetOptions & json.JsonObject>(executebBuilder: BuilderExecutor<O>) => BuilderHandlerFn<O>;