mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
33 lines
1013 B
TypeScript
33 lines
1013 B
TypeScript
// Type definitions for gulp-uglify 3.0
|
|
// Project: https://github.com/terinjokes/gulp-uglify
|
|
// Definitions by: Christopher Haws <https://github.com/ChristopherHaws>
|
|
// Leonard Thieu <https://github.com/leonard-thieu>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="node"/>
|
|
|
|
import * as UglifyJS from 'uglify-js';
|
|
|
|
declare namespace GulpUglify {
|
|
interface Options {
|
|
/**
|
|
* Pass false to skip mangling names.
|
|
*/
|
|
mangle?: boolean;
|
|
|
|
/**
|
|
* Pass if you wish to specify additional output options. The defaults are optimized for best compression.
|
|
*/
|
|
output?: UglifyJS.BeautifierOptions;
|
|
|
|
/**
|
|
* Pass an object to specify custom compressor options. Pass false to skip compression completely.
|
|
*/
|
|
compress?: UglifyJS.CompressorOptions | boolean;
|
|
}
|
|
}
|
|
|
|
declare function GulpUglify(options?: GulpUglify.Options): NodeJS.ReadWriteStream;
|
|
|
|
export = GulpUglify;
|