override-configs
TypeScript icon, indicating that this package has built-in type declarations

0.1.11 • Public • Published

override-configs

Installation

Install npm package:

npm install override-configs

Usage

const overrideConfigs = require("override-configs");

const defaultConfig = { NODE_ENV: "production" };
const overrideFilePaths = [path.join(__dirname, "config.override.js")];

// optional
const args = [{ webpack: {} }];
const options = { silent: true };

module.exports = overrideConfigs(
  defaultConfig,
  overrideFilePaths,
  args,
  options
);

Expectations:

  • Config file types include: json, js, cjs.
  • Config must be the default export.
  • Config may be an object or a function.

Configs are merged in the order of lodash.merge.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i override-configs

Weekly Downloads

3

Version

0.1.11

License

MIT

Unpacked Size

32.5 kB

Total Files

26

Last publish

Collaborators

  • jlarmstrongiv