Skip to content

Commit

Permalink
add datauri configuration parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Vicente Canales committed Jun 2, 2017
1 parent 51832d4 commit 91a6804
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/svgo/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ module.exports = function(config) {
});
}

if ('datauri' in config) {
defaults.config = config.datauri;
}

if (Array.isArray(defaults.plugins)) {
defaults.plugins = optimizePluginsArray(defaults.plugins);
}
Expand Down

0 comments on commit 91a6804

Please sign in to comment.