1 | import { Plugin } from "webpack";
|
2 |
|
3 | export = UglifyJsPlugin;
|
4 |
|
5 | declare class UglifyJsPlugin extends Plugin {
|
6 | constructor(options?: UglifyJsPlugin.UglifyJsPluginOptions);
|
7 | }
|
8 |
|
9 | declare namespace UglifyJsPlugin {
|
10 | interface UglifyJsPluginOptions {
|
11 | test?: RegExp | RegExp[] | undefined;
|
12 | include?: RegExp | RegExp[] | undefined;
|
13 | exclude?: RegExp | RegExp[] | undefined;
|
14 | cache?: boolean | string | undefined;
|
15 | parallel?: boolean | number | undefined;
|
16 | sourceMap?: boolean | undefined;
|
17 | uglifyOptions?: UglifyJsOptions | undefined;
|
18 | extractComments?:
|
19 | | boolean
|
20 | | RegExp
|
21 | | ((node: object, comment: string) => boolean)
|
22 | | ExtractCommentsOptions
|
23 | | undefined;
|
24 | warningsFilter?: ((source: string) => boolean) | undefined;
|
25 | }
|
26 |
|
27 | interface UglifyJsOptions {
|
28 | ie8?: boolean | undefined;
|
29 | ecma?: number | undefined;
|
30 | parse?: object | undefined;
|
31 | mangle?: boolean | object | undefined;
|
32 | output?: object | undefined;
|
33 | compress?: boolean | object | undefined;
|
34 | warnings?: boolean | undefined;
|
35 | toplevel?: boolean | undefined;
|
36 | nameCache?: object | undefined;
|
37 | keep_classnames?: boolean | undefined;
|
38 | keep_fnames?: boolean | undefined;
|
39 | safari10?: boolean | undefined;
|
40 | }
|
41 |
|
42 | interface ExtractCommentsOptions {
|
43 | condition?: RegExp | ((node: object, comment: string) => boolean) | undefined;
|
44 | filename?: string | ((originalFileName: string) => string) | undefined;
|
45 | banner?: boolean | string | ((fileName: string) => string) | undefined;
|
46 | }
|
47 | }
|
48 |
|
\ | No newline at end of file |