Skip to content

Commit

Permalink
fix: pass proceed file
Browse files Browse the repository at this point in the history
  • Loading branch information
1000ch committed Oct 4, 2020
1 parent a32092f commit 8c087d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = (options = {}) => through.obj(async (file, enc, callback) => {

file.contents = buffer;
file.path = replaceExt(file.path, '.png');
callback();
callback(null, file);
} catch (error) {
callback(new PluginError('gulp-dwebp', error));
}
Expand Down

0 comments on commit 8c087d3

Please sign in to comment.