How to use the umi-core/lib/getUserConfig.getConfigPaths function in umi-core

To help you get started, we’ve selected a few umi-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github umijs / umi / packages / umi-build-dev / src / registerBabel.js View on Github external
function initFiles(cwd) {
  files = uniq(files.concat(getConfigPaths(cwd)));
}
github umijs / umi / packages / umi-build-dev / src / UserConfig.js View on Github external
watchConfigs(handler) {
    const { cwd } = this.service;
    const watcher = this.watch('CONFIG_FILES', getConfigPaths(cwd));
    if (watcher) {
      watcher.on('all', handler);
    }
  }
}