@rtobon/app-config

1.3.1 • Public • Published

@eagle/app-config

Cascading configuration for web application

Install

npm install --save @eagle/app-config

Repository

https://github.com/Graf009/app-config.git

Usage

Loads configuration files from a config folder in your project root.

  • default is always loaded if it exists
  • If you specify NODE_ENV=production then both production and default are loaded, with production taking precedence.
  • Any valid JS extension can be used for config - JS, json, etc.
    • To load another extension, register it before you require this module
import config from '@eagle/app-config'

For working in browser add AppConfigPlugin in webpack config.

import AppConfigPlugin from '@eagle/app-config/webpack'

var webpackConfig = {
  plugins: [
    new AppConfigPlugin(),
  ]
}

Readme

Keywords

none

Package Sidebar

Install

npm i @rtobon/app-config

Weekly Downloads

0

Version

1.3.1

License

MIT

Unpacked Size

4.56 kB

Total Files

7

Last publish

Collaborators

  • rtobon