UNPKG

765 BTypeScriptView Raw
1/// <reference types="node"/>
2
3import * as UglifyJS from "uglify-js";
4
5declare namespace GulpUglify {
6 interface Options {
7 /**
8 * Pass false to skip mangling names.
9 */
10 mangle?: UglifyJS.MangleOptions | boolean | undefined;
11
12 /**
13 * Pass if you wish to specify additional output options. The defaults are optimized for best compression.
14 */
15 output?: UglifyJS.OutputOptions | undefined;
16
17 /**
18 * Pass an object to specify custom compressor options. Pass false to skip compression completely.
19 */
20 compress?: UglifyJS.CompressOptions | boolean | undefined;
21 }
22}
23
24declare function GulpUglify(options?: GulpUglify.Options): NodeJS.ReadWriteStream;
25
26export = GulpUglify;