How to use the umi-utils.loadDotEnv function in umi-utils

To help you get started, we’ve selected a few umi-utils 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 / src / buildDevOpts.js View on Github external
function loadEnv() {
  const basePath = join(process.cwd(), '.env');
  const localPath = `${basePath}.local`;
  loadDotEnv(localPath);
  loadDotEnv(basePath);
}
github umijs / umi / packages / umi-build-dev / src / Service.js View on Github external
loadEnv() {
    const basePath = join(this.cwd, '.env');
    const localPath = `${basePath}.local`;
    loadDotEnv(basePath);
    loadDotEnv(localPath);
  }
github umijs / umi / packages / umi-build-dev / src / Service.js View on Github external
loadEnv() {
    const basePath = join(this.cwd, '.env');
    const localPath = `${basePath}.local`;
    loadDotEnv(basePath);
    loadDotEnv(localPath);
  }
github umijs / umi / packages / umi / src / buildDevOpts.js View on Github external
function loadEnv() {
  const basePath = join(process.cwd(), '.env');
  const localPath = `${basePath}.local`;
  loadDotEnv(localPath);
  loadDotEnv(basePath);
}