Skip to content

Commit

Permalink
Fix default plugins initializing
Browse files Browse the repository at this point in the history
Fixe svg#852, close svg#853
  • Loading branch information
GreLI committed Sep 15, 2018
1 parent ba07843 commit dd2a21f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/svgo/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = function(config) {
}
} else {
defaults = Object.assign({}, yaml.safeLoad(FS.readFileSync(__dirname + '/../../.svgo.yml', 'utf8')));
defaults.plugins = preparePluginsArray(defaults.plugins);
defaults.plugins = preparePluginsArray(defaults.plugins || []);
defaults = extendConfig(defaults, config);
}

Expand Down

0 comments on commit dd2a21f

Please sign in to comment.