gulp-strip-debug = function () { return through.obj(function (file, enc, cb) { if (file.isNull()) { cb(null, file); return; } if (file.isStream()) { cb(new gutil.PluginError('gulp-strip-debug', 'Streaming not supported')); return; } try { file.contents = new Buffer(stripDebug(file.contents.toString()).toString()); this.push(file); } catch (err) { this.emit('error', new gutil.PluginError('gulp-strip-debug', err, {fileName: file.path})); } cb(); }); }
n/a