All Projects → mehcode → webpack-config-plugin

mehcode / webpack-config-plugin

Licence: MIT license
Configuration plugin (in the style of node-config) for webpack.

Programming Languages

javascript
184084 projects - #8 most used programming language

webpack-config-plugin

Configuration plugin (in the style of node-config) for webpack.

Install

npm install --save-dev webpack-config-plugin

Configuration

// webpack.config.js
var path = require("path")
var ConfigPlugin = require("webpack-config-plugin")

module.exports = {
  // [...]
  plugins: [
    // [...]
    new ConfigPlugin({
      // Configuration directory
      dir: path.join(__dirname, "config")
    })
  ]
}

Usage

When the plugin has been configured it enables a faux-module config which is a merge between a default configuration, an environment-specific configuration, and a local configuration.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].