docs: add a Getting started section and clarify config steps

This commit is contained in:
Pierre Vanduynslager
2018-10-08 13:24:51 -04:00
parent 5ba5010c80
commit aa9d5c6efe
8 changed files with 121 additions and 160 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ module.exports = (context, pluginsPath) => {
if (isPlainObject(plugin)) {
Object.entries(plugin).forEach(([type, func]) => {
if (PLUGINS_DEFINITIONS[type]) {
plugins[type] = [...(plugins[type] || []), [func, config]];
plugins[type] = [...(PLUGINS_DEFINITIONS[type].multiple ? plugins[type] || [] : []), [func, config]];
}
});
} else {