# webpack2-env-loader-plugin

> A plugin for loading configuration into webpack 2 based on environment

Latest version **0.1.0** (published 2016-12-18) · MPL-2.0 license · 0 weekly downloads

## Install

```sh
npm install webpack2-env-loader-plugin
pnpm add webpack2-env-loader-plugin
yarn add webpack2-env-loader-plugin
bun add webpack2-env-loader-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.1.0 |
| Published | 2016-12-18 |
| First published | 2016-12-18 |
| Weekly downloads | 0 |
| License | MPL-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | @k88hudson |
| Maintainers | ripley511 |

## Links

- npm: https://www.npmjs.com/package/webpack2-env-loader-plugin
- npm.io page: https://npm.io/package/webpack2-env-loader-plugin

## Dependencies (5)

- [yaml](https://npm.io/package/yaml.md) ^0.3.0
- [colors](https://npm.io/package/colors.md) ^1.1.2
- [yamljs](https://npm.io/package/yamljs.md) ^0.2.6
- [webpack](https://npm.io/package/webpack.md) ^2.1.0-beta.28
- [strip-json-comments](https://npm.io/package/strip-json-comments.md) ^2.0.1

## Recent versions

- 0.1.0 (latest) — 2016-12-18

## README

# webpack2-env-loader-plugin

A plugin that extends `DefinePlugin` to help load configuration based on environment.

This plugin is a simple adaptation of k88hudson webpack-env-loader-plugin for Webpack, but uses Webpack 2.1 (no annoying error message).

Check out [k88hudson repository](https://github.com/k88hudson/webpack-env-loader-plugin) for configuration instructions.

## Installation

First, install with npm:

```
npm install webpack2-env-loader-plugin --save-dev
```

Add an instance of the plugin to `webpack.config.js`:

```js
const EnvLoaderWebpack2Plugin = require("webpack2-env-loader-plugin");

module.exports = {
  ...
  plugins: [
    new EnvLoaderWebpack2Plugin(options)
  ]
};
```

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