Merge pull request #10836 from uncovertruth/fix/gulp-uglify-options

Fixed interface gulp-uglify Options
This commit is contained in:
Daniel Rosenwasser
2016-08-28 23:04:47 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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);
}
}