1.3.1 • Published 8 years ago
@ricardo-tobon/app-config v1.3.1
@nas-user/app-config
Cascading configuration for web application
Install
npm install --save @nas-user/app-configRepository
https://github.com/Graf009/app-config.git
Usage
Loads configuration files from a config folder in your project root.
defaultis always loaded if it exists- If you specify
NODE_ENV=productionthen bothproductionanddefaultare loaded, withproductiontaking 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 '@nas-user/app-config'For working in browser add AppConfigPlugin in webpack config.
import AppConfigPlugin from '@nas-user/app-config/webpack'
var webpackConfig = {
plugins: [
new AppConfigPlugin(),
]
}1.3.1
8 years ago