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