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