mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-22 23:15:56 +08:00
Forcing TypeScript to output commonjs modules instead of es2015 modules drastically improves rebuild speeds, especially for AOT. This PR forces this option on the following modes: - `ng build --watch --target=development` - `ng serve --target=development` - `ng test --code-coverage=false` Please note that `--target=development` and `--code-coverage=false` are the defaults. See https://github.com/webpack/webpack/issues/5863 for the webpack issue.
35 lines
833 B
TypeScript
35 lines
833 B
TypeScript
export interface BuildOptions {
|
|
target?: string;
|
|
environment?: string;
|
|
outputPath?: string;
|
|
aot?: boolean;
|
|
sourcemaps?: boolean;
|
|
evalSourcemaps?: boolean;
|
|
vendorChunk?: boolean;
|
|
commonChunk?: boolean;
|
|
baseHref?: string;
|
|
deployUrl?: string;
|
|
verbose?: boolean;
|
|
progress?: boolean;
|
|
i18nFile?: string;
|
|
i18nFormat?: string;
|
|
i18nOutFile?: string;
|
|
i18nOutFormat?: string;
|
|
locale?: string;
|
|
missingTranslation?: 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;
|
|
forceTsCommonjs?: boolean;
|
|
}
|