mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
Merge pull request #10836 from uncovertruth/fix/gulp-uglify-options
Fixed interface gulp-uglify Options
This commit is contained in:
@@ -14,7 +14,7 @@ gulp.task('compress2', function() {
|
||||
var tsResult = gulp.src('lib/*.ts')
|
||||
.pipe(uglify({
|
||||
mangle: false,
|
||||
preserverComments: "some",
|
||||
preserveComments: "some",
|
||||
compress: false,
|
||||
output: {
|
||||
max_line_len: 300
|
||||
|
||||
2
gulp-uglify/gulp-uglify.d.ts
vendored
2
gulp-uglify/gulp-uglify.d.ts
vendored
@@ -32,7 +32,7 @@ declare module "gulp-uglify" {
|
||||
* some - Preserve comments that start with a bang (!) or include a Closure Compiler directive (@preserve, @license, @cc_on)
|
||||
* function - Specify your own comment preservation function. You will be passed the current node and the current comment and are expected to return either true or false.
|
||||
*/
|
||||
preserverComments?: string|((node: any, comment: UglifyJS.Tokenizer) => boolean);
|
||||
preserveComments?: string|((node: any, comment: UglifyJS.Tokenizer) => boolean);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user