UNPKG

1.09 kBTypeScriptView Raw
1// Type definitions for gulp-uglify 3.0
2// Project: https://github.com/terinjokes/gulp-uglify
3// Definitions by: Christopher Haws <https://github.com/ChristopherHaws>
4// Leonard Thieu <https://github.com/leonard-thieu>
5// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
6// TypeScript Version: 2.2
7
8/// <reference types="node"/>
9
10import * as UglifyJS from 'uglify-js';
11
12declare namespace GulpUglify {
13 interface Options {
14 /**
15 * Pass false to skip mangling names.
16 */
17 mangle?: UglifyJS.MangleOptions | boolean | undefined;
18
19 /**
20 * Pass if you wish to specify additional output options. The defaults are optimized for best compression.
21 */
22 output?: UglifyJS.OutputOptions | undefined;
23
24 /**
25 * Pass an object to specify custom compressor options. Pass false to skip compression completely.
26 */
27 compress?: UglifyJS.CompressOptions | boolean | undefined;
28 }
29}
30
31declare function GulpUglify(options?: GulpUglify.Options): NodeJS.ReadWriteStream;
32
33export = GulpUglify;