Skip to content

Commit

Permalink
docs(README): suggest using pump to capture errors
Browse files Browse the repository at this point in the history
  • Loading branch information
terinjokes committed Apr 13, 2016
1 parent eb9893e commit e3316ae
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions README.md
Expand Up @@ -11,12 +11,18 @@ Install package with NPM and add it to your development dependencies:
## Usage

```javascript
var gulp = require('gulp');
var uglify = require('gulp-uglify');

gulp.task('compress', function() {
return gulp.src('lib/*.js')
.pipe(uglify())
.pipe(gulp.dest('dist'));
var pump = require('pump');

gulp.task('compress', function (cb) {
pump([
gulp.src('lib/*.js'),
uglify(),
gulp.dest('dist')
],
cb
);
});
```

Expand Down

0 comments on commit e3316ae

Please sign in to comment.