export function getDevConf()

in src/utils/fileUtils/index.ts [169:182]


export function getDevConf<T>(
  name: keyof DevToolProps,
  type: string,
  defaultValue: T
): T {
  const projectConfig = getProjectConfig();
  const configPath = `${type ? type + '.' : ''}${name}`;
  const userConf = configPath.split('.').reduce((current, key) => {
    return current && key in current ? current[key] : undefined;
  }, projectConfig);
  // @ts-ignore
  const globalConf = global[name];
  return getConfigValue(globalConf, userConf, defaultValue);
}