webpack2-env-loader-plugin

0.1.0 • Public • Published

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 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:

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

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    3

Package Sidebar

Install

npm i webpack2-env-loader-plugin

Weekly Downloads

3

Version

0.1.0

License

MPL-2.0

Last publish

Collaborators

  • ripley511