UNPKG

@farris/build-angular

Version:

Angular Webpack Build Facade

73 lines (72 loc) 2.14 kB
/** * @license * Copyright Google Inc. 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 * as ts from 'typescript'; import { AssetPatternObject, Budget, CurrentFileReplacement, ExtraEntryPoint } from '../../browser/schema'; export interface BuildOptions { optimization: boolean; environment?: string; outputPath: string; aot?: boolean; sourceMap?: boolean; vendorSourceMap?: boolean; evalSourceMap?: boolean; vendorChunk?: boolean; commonChunk?: boolean; baseHref?: string; deployUrl?: string; verbose?: boolean; progress?: boolean; i18nFile?: string; i18nFormat?: string; i18nLocale?: string; i18nMissingTranslation?: string; extractCss?: boolean; bundleDependencies?: 'none' | 'all'; watch?: boolean; outputHashing?: string; poll?: number; app?: string; deleteOutputPath?: boolean; preserveSymlinks?: boolean; extractLicenses?: boolean; showCircularDependencies?: boolean; buildOptimizer?: boolean; namedChunks?: boolean; subresourceIntegrity?: boolean; serviceWorker?: boolean; skipAppShell?: boolean; statsJson: boolean; forkTypeChecker: boolean; main: string; index: string; polyfills?: string; entryModules?: string[]; reference?: string[][]; budgets: Budget[]; assets: AssetPatternObject[]; scripts: ExtraEntryPoint[]; styles: ExtraEntryPoint[]; stylePreprocessorOptions?: { includePaths: string[]; }; lazyModules: string[]; platform?: 'browser' | 'server'; fileReplacements: CurrentFileReplacement[]; } export interface WebpackTestOptions extends BuildOptions { codeCoverage?: boolean; codeCoverageExclude?: string[]; } export interface WebpackConfigOptions<T = BuildOptions> { root: string; projectRoot: string; buildOptions: T; tsConfig: ts.ParsedCommandLine; tsConfigPath: string; supportES2015: boolean; }