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.
- Host: GitHub
- URL: https://github.com/mehcode/webpack-config-plugin
- Owner: mehcode
- License: mit
- Created: 2015-07-31T05:31:11.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-10-11T13:18:18.000Z (over 8 years ago)
- Last Synced: 2025-04-11T00:02:33.180Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 14
- Watchers: 3
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.