# set-product-config-loader

> set AppConfig to default when in product's development

Latest version **0.0.5** (published 2019-07-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install set-product-config-loader
pnpm add set-product-config-loader
yarn add set-product-config-loader
bun add set-product-config-loader
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2019-07-18 |
| First published | 2017-12-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rhymedys |
| Maintainers | rhymedys |

## Links

- npm: https://www.npmjs.com/package/set-product-config-loader
- Repository: https://github.com/rhymedys/set-product-config-loader
- Homepage: https://github.com/rhymedys/set-product-config-loader#readme
- Issues: https://github.com/rhymedys/set-product-config-loader/issues
- npm.io page: https://npm.io/package/set-product-config-loader

## Recent versions

- 0.0.5 (latest) — 2019-07-18
- 0.0.4 — 2019-07-18
- 0.0.3 — 2019-07-18
- 0.0.2 — 2017-12-23
- 0.0.1 — 2017-12-11

## README

# set-product-config-loader
set AppConfig to default state when in the production development

##  Example

```javascript
export const isDebugApi = true // development environment state
      ↓ ↓ ↓ ↓
export const isDebugApi = false // production environment state
```

```javascript
export const isDebugLog = true // development environment state
      ↓ ↓ ↓ ↓
export const isDebugLog = false  // production environment state
```

## Usage
### Install
```cmd
npm i set-product-config-loader
```
### Config
add as webpack loader in webpack config file
```Javascript
{
  test: /\.js$/,
  loader: 'set-product-config-loader',
  include: [resolve('src')],
  options: {
    fileName:AppConfig, // default value is AppConfig
    configs: ['isDebugApi', 'isDebugLog'] // the key to set default value 'false' or you can set defined value by this way ——configs: [{isDebugApi:false}]
    }
}
```

---
_Source: https://npm.io/package/set-product-config-loader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
