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.3 KB
|
Rev | Line | |
---|
[6a3a178] | 1 | import { WebpackChunk } from './WebpackChunk';
|
---|
| 2 | import { Source } from 'webpack-sources';
|
---|
| 3 | import { ChunkGraph } from './ChunkGraph';
|
---|
| 4 | import { WebpackCompiler } from './WebpackCompiler';
|
---|
| 5 | import { WebpackStats } from './WebpackStats';
|
---|
| 6 | export interface WebpackCompilation {
|
---|
| 7 | hash: string;
|
---|
| 8 | chunks: IterableIterator<WebpackChunk>;
|
---|
| 9 | assets: {
|
---|
| 10 | [key: string]: Source;
|
---|
| 11 | };
|
---|
| 12 | errors: any[];
|
---|
| 13 | warnings: any[];
|
---|
| 14 | getPath(filename: string, data: {
|
---|
| 15 | hash?: any;
|
---|
| 16 | chunk?: any;
|
---|
| 17 | filename?: string;
|
---|
| 18 | basename?: string;
|
---|
| 19 | query?: any;
|
---|
| 20 | }): string;
|
---|
| 21 | hooks: {
|
---|
| 22 | optimizeChunkAssets: {
|
---|
| 23 | tap: (pluginName: string, handler: (chunks: IterableIterator<WebpackChunk>) => void) => void;
|
---|
| 24 | };
|
---|
| 25 | processAssets: {
|
---|
| 26 | tap: (options: {
|
---|
| 27 | name: string;
|
---|
| 28 | stage: number;
|
---|
| 29 | }, handler: () => void) => void;
|
---|
| 30 | };
|
---|
| 31 | };
|
---|
| 32 | plugin?: (phase: string, callback: Function) => void;
|
---|
| 33 | chunkGraph?: ChunkGraph;
|
---|
| 34 | compiler: WebpackCompiler;
|
---|
| 35 | getStats: () => {
|
---|
| 36 | toJson: (options?: WebpackStatsOptions) => WebpackStats;
|
---|
| 37 | };
|
---|
| 38 | }
|
---|
| 39 | export interface WebpackStatsOptions {
|
---|
| 40 | all?: boolean;
|
---|
| 41 | chunks?: boolean;
|
---|
| 42 | chunkModules?: boolean;
|
---|
| 43 | nestedModules?: boolean;
|
---|
| 44 | dependentModules?: boolean;
|
---|
| 45 | cachedModules?: boolean;
|
---|
| 46 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.