# webpack-env-plugin

> emit a `env.json` in dist folder then you can use this after

Latest version **0.0.2** (published 2018-01-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install webpack-env-plugin
pnpm add webpack-env-plugin
yarn add webpack-env-plugin
bun add webpack-env-plugin
```

## 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.2 |
| Published | 2018-01-26 |
| First published | 2018-01-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | flynnlee |
| Maintainers | flynnlee |
| Keywords | env, webpack |

## Links

- npm: https://www.npmjs.com/package/webpack-env-plugin
- Repository: https://github.com/FlynnLeeGit/webpack-env-plugin
- Homepage: https://github.com/FlynnLeeGit/webpack-env-plugin#readme
- Issues: https://github.com/FlynnLeeGit/webpack-env-plugin/issues
- npm.io page: https://npm.io/package/webpack-env-plugin

## Alternatives

- [replicas-cli](https://npm.io/package/replicas-cli.md) — 3.0K weekly downloads
- [env-contract](https://npm.io/package/env-contract.md) — 133 weekly downloads
- [@openveo/api](https://npm.io/package/@openveo/api.md) — 61 weekly downloads
- [@ryniaubenpm2/cumque-error-reiciendis](https://npm.io/package/@ryniaubenpm2/cumque-error-reiciendis.md) — 54 weekly downloads
- [ts-global-type-extra](https://npm.io/package/ts-global-type-extra.md) — 11 weekly downloads

## Recent versions

- 0.0.2 (latest) — 2018-01-26
- 0.0.1 — 2018-01-26

## README

##  WebpackEnvPlugin 
### emit a `env.json` by own env variables

install
```shell
yarn add webpack-env-plugin
# or
npm install webpack-env-plugin
```

use
```js
const EnvPlugin = require('webpack-env-plugin')
// webpack.config.js
{
  plugins:[
    new EnvPlugin({
      filename:'env.json', // default env.json
      env:{
        a:1,
        b:2
      },
      verbose:true // default:true
    })
  ]
}
```

it will produce a env.json in your dist folder
env.json
```json
{
  "a": 1,
  "b": 2
}

```

---
_Source: https://npm.io/package/webpack-env-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
