-
Notifications
You must be signed in to change notification settings - Fork 107
/
typings.d.ts
99 lines (97 loc) · 2.05 KB
/
typings.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import { Compiler } from 'webpack';
export = BundleTrackerPlugin;
declare class BundleTrackerPlugin {
constructor(options?: BundleTrackerPlugin.Options);
apply(compiler: Compiler): void;
}
declare namespace BundleTrackerPlugin {
interface Options {
/**
* Output directory of the bundle tracker JSON file
* Default: `'.'`
*/
path?: string;
/**
* Name of the bundle tracker JSON file.
* Default: `'webpack-stats.json'`
*/
filename?: string;
/**
* Property to override default `output.publicPath` from Webpack config file.
*/
publicPath?: string;
/**
* Output `startTime` and `endTime` properties to JSON file.
* Default: `false`
*/
logTime?: boolean;
/**
* Output relative path from JSON file into `path` properties.
* Default: `false`
*/
relativePath?: boolean;
/**
* Indent JSON output file
*/
indent?: number;
/**
* Enable subresources integrity
* Default: `false`
*/
integrity?: boolean;
/**
* Set subresources integrity hashes
* Default: `[ 'sha256', 'sha384', 'sha512' ]`
*/
integrityHashes?: string[];
}
interface Contents {
/**
* Status of webpack
*/
status: string;
/**
* Error when webpack has failure from compilation
*/
error?: string;
/**
* Error message when webpack has failure from compilation
*/
message?: string;
/**
* File information
*/
assets: {
[name: string]: {
name: string;
integrity?: string;
publicPath?: string;
path: string;
};
};
/**
* List of chunks builded
*/
chunks: {
[name: string]: [
{
name: string;
publicPath?: string;
path: string;
},
];
};
/**
* Public path of chunks
*/
publicPath?: string;
/**
* Start time of webpack compilation
*/
startTime?: number;
/**
* End time of webpack compilation
*/
endTime?: number;
}
}