INNER CODE UNIT · JavaScript

getConfig

nullstack/nullstack · scripts/index.js:13

function getConfig(options) {
  return config.map((env) => env(null, options))
}

function getCompiler(options) {
  return webpack(getConfig(options))
}

function loadEnv(name) {
  let envPath = '.env'
  if (name) {
    envPath += `.${name}`
  }
  dotenv.config({ path: envPath })
}

function clearDir() {
  if (existsSync(path.join(process.cwd(), '.development'))) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…