Skip to content

Commit

Permalink
Copy plugin params when initializing plugin by name
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberalien authored and GreLI committed Jul 13, 2019
1 parent d3e9141 commit ac34386
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/svgo/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ function preparePluginsArray(config, plugins) {

plugin = loadPlugin(config, item);
plugin.name = item;
if (typeof plugin.params === 'object') {
plugin.params = Object.assign({}, plugin.params);
}

}

Expand Down

0 comments on commit ac34386

Please sign in to comment.