loadConfig(options) ⇒ Promise
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)