(config: keyof typeof defaultConfigs | false)
| 129 | * @param config Name of the base config to use. |
| 130 | */ |
| 131 | export function useConfig(config: keyof typeof defaultConfigs | false) { |
| 132 | explicitUseConfig = true; |
| 133 | if (config) { |
| 134 | webpackChains.push({ |
| 135 | order: -1, |
| 136 | chainFn: configs[config], |
| 137 | }); |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | /** |
| 142 | * Add a new function to be called when building the internal config using webpack-chain. |
no test coverage detected