source: trip-planner-front/node_modules/@angular-devkit/build-angular/src/webpack/utils/stats.d.ts@ 6c1585f

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

initial commit

  • Property mode set to 100644
File size: 1.6 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 { WebpackLoggingCallback } from '@angular-devkit/build-webpack';
9import { logging } from '@angular-devkit/core';
10import { Configuration, StatsCompilation } from 'webpack';
11import { Schema as BrowserBuilderOptions } from '../../browser/schema';
12export declare function formatSize(size: number): string;
13export declare type BundleStatsData = [files: string, names: string, size: number | string];
14export declare type ChunkType = 'modern' | 'legacy' | 'unknown';
15export interface BundleStats {
16 initial: boolean;
17 stats: BundleStatsData;
18 chunkType: ChunkType;
19}
20export declare function generateBundleStats(info: {
21 size?: number;
22 files?: string[];
23 names?: string[];
24 initial?: boolean;
25 rendered?: boolean;
26 chunkType?: ChunkType;
27}): BundleStats;
28export declare function statsWarningsToString(json: StatsCompilation, statsConfig: any): string;
29export declare function statsErrorsToString(json: StatsCompilation, statsConfig: any): string;
30export declare function statsHasErrors(json: StatsCompilation): boolean;
31export declare function statsHasWarnings(json: StatsCompilation): boolean;
32export declare function createWebpackLoggingCallback(options: BrowserBuilderOptions, logger: logging.LoggerApi): WebpackLoggingCallback;
33export declare function webpackStatsLogger(logger: logging.LoggerApi, json: StatsCompilation, config: Configuration, bundleStats?: BundleStats[]): void;
Note: See TracBrowser for help on using the repository browser.