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 { logging } from '@angular-devkit/core';
|
---|
10 | import { Configuration } from 'webpack';
|
---|
11 | import { Schema as BrowserBuilderSchema } from '../browser/schema';
|
---|
12 | import { NormalizedBrowserBuilderSchema } from '../utils';
|
---|
13 | import { WebpackConfigOptions } from '../utils/build-options';
|
---|
14 | import { I18nOptions } from './i18n-options';
|
---|
15 | export declare type BrowserWebpackConfigOptions = WebpackConfigOptions<NormalizedBrowserBuilderSchema>;
|
---|
16 | export declare function generateWebpackConfig(workspaceRoot: string, projectRoot: string, sourceRoot: string | undefined, options: NormalizedBrowserBuilderSchema, webpackPartialGenerator: (wco: BrowserWebpackConfigOptions) => Configuration[], logger: logging.LoggerApi, extraBuildOptions: Partial<NormalizedBrowserBuilderSchema>): Promise<Configuration>;
|
---|
17 | export declare function generateI18nBrowserWebpackConfigFromContext(options: BrowserBuilderSchema, context: BuilderContext, webpackPartialGenerator: (wco: BrowserWebpackConfigOptions) => Configuration[], extraBuildOptions?: Partial<NormalizedBrowserBuilderSchema>): Promise<{
|
---|
18 | config: Configuration;
|
---|
19 | projectRoot: string;
|
---|
20 | projectSourceRoot?: string;
|
---|
21 | i18n: I18nOptions;
|
---|
22 | }>;
|
---|
23 | export declare function generateBrowserWebpackConfigFromContext(options: BrowserBuilderSchema, context: BuilderContext, webpackPartialGenerator: (wco: BrowserWebpackConfigOptions) => Configuration[], extraBuildOptions?: Partial<NormalizedBrowserBuilderSchema>): Promise<{
|
---|
24 | config: Configuration;
|
---|
25 | projectRoot: string;
|
---|
26 | projectSourceRoot?: string;
|
---|
27 | }>;
|
---|
28 | export declare function getIndexOutputFile(index: BrowserBuilderSchema['index']): string;
|
---|
29 | export declare function getIndexInputFile(index: BrowserBuilderSchema['index']): string;
|
---|