Skip to content

Commit

Permalink
Fix plugin options
Browse files Browse the repository at this point in the history
  • Loading branch information
kevva committed Jun 23, 2017
1 parent c39ebb7 commit 4b7d009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/imagemin.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const defaultPlugins = ['gifsicle', 'jpegtran', 'optipng', 'svgo'];

const loadPlugin = (grunt, plugin, opts) => {
try {
return require(`imagemin-${plugin}`).apply(null, opts);
return require(`imagemin-${plugin}`)(opts);
} catch (err) {
grunt.warn(`Couldn't load default plugin "${plugin}"`);
}
Expand Down

0 comments on commit 4b7d009

Please sign in to comment.