feat: default config
This commit is contained in:
parent
7f4010cac3
commit
ac3ab2dd03
|
@ -19,6 +19,15 @@ export default class Plugins {
|
|||
});
|
||||
}
|
||||
}
|
||||
const defaultConfig = this.invoke('@latus/core/config');
|
||||
const plugins = Object.keys(defaultConfig);
|
||||
for (let i = 0; i < plugins.length; i++) {
|
||||
const plugin = plugins[i];
|
||||
this.config[plugin] = {
|
||||
...defaultConfig[plugin],
|
||||
...this.config[plugin],
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
invoke(hook, ...args) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user