User
loadConfig(options) ā Promise<Object>
Loads a config file, optionally merging it over a default one.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
configName |
string |
ā | 'customName.config.js' |
Name of the config file to look for in cwd/ and cwd/config/ |
defaultConfigPath |
string |
ā | None | Path to fallback config (absolute or relative to cwd) |
merge |
boolean |
ā | true |
Whether to deep-merge user config over default |
verbose |
boolean |
ā | false |
Log which config was loaded and from where |
cwd |
string |
ā | process.cwd() |
Base path to resolve config paths |
Returns
Promise<Object>ā The exported config object (fromexport defaultor full module)