From e96e7a2aaa66814680c0c68bdd50d517d54b89cf Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 16 Nov 2014 13:53:13 +0700 Subject: [PATCH] minor tweaks --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 24ff9a6..b475f08 100644 --- a/index.js +++ b/index.js @@ -35,9 +35,11 @@ module.exports = function (opts) { applySourceMap(file, res.map.toString()); } - cb(null, file); + this.push(file); } catch (err) { - cb(new gutil.PluginError('gulp-autoprefixer', err, {fileName: file.path})); + this.emit('error', new gutil.PluginError('gulp-autoprefixer', err, {fileName: file.path})); } + + cb(); }); };