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