Skip to content
Configuration plugin (in the style of node-config) for webpack.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.eslintrc
.gitignore
LICENSE
README.md
package.json

README.md

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.

You can’t perform that action at this time.