Created
November 9, 2014 02:25
-
-
Save emgeee/7029ae19a18a704a9313 to your computer and use it in GitHub Desktop.
Sample gulpfile to blow up gulp-uglify.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var gulp = require('gulp'); | |
var gulpUglify = require('./index.js'); | |
var through = require('through2'); | |
var errorStream = through.obj(function(file, encoding, callback) { | |
// Do something improper | |
var b = a.c; | |
callback(); | |
}); | |
gulp.task('default', function() { | |
gulp.src('test/*.js') | |
.pipe(gulpUglify()) | |
.pipe(errorStream); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment