1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | import * as ProgressBar from 'progress';
|
8 | import { Plugin } from 'webpack';
|
9 |
|
10 | export = ProgressBarPlugin;
|
11 |
|
12 | declare namespace ProgressBarPlugin {
|
13 | interface Options extends ProgressBar.ProgressBarOptions {
|
14 | |
15 |
|
16 |
|
17 |
|
18 | format?: string | undefined;
|
19 | |
20 |
|
21 |
|
22 | callback?: (() => void) | undefined;
|
23 | /**
|
24 | * option to show summary of time taken
|
25 | * @default true
|
26 | */
|
27 | summary?: boolean | undefined;
|
28 | /**
|
29 | * custom summary message if summary option is false
|
30 | */
|
31 | summaryContent?: boolean | undefined;
|
32 | /**
|
33 | * function to display a custom summary
|
34 | * (passed build time)
|
35 | */
|
36 | customSummary?: ((summary: string) => void) | undefined;
|
37 | }
|
38 | }
|
39 |
|
40 | /**
|
41 | * A progress bar plugin for Webpack.
|
42 | */
|
43 | declare class ProgressBarPlugin extends Plugin {
|
44 | constructor(options?: ProgressBarPlugin.Options);
|
45 | }
|
46 |
|
\ | No newline at end of file |