An open API service indexing awesome lists of open source software.

https://github.com/mehcode/webpack-config-plugin

Configuration plugin (in the style of node-config) for webpack.
https://github.com/mehcode/webpack-config-plugin

Last synced: 11 months ago
JSON representation

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

Awesome Lists containing this project

README

          

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

## Install

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

## Configuration

```js
// 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.