https://github.com/diegohaz/webpack-child-config-plugin
A webpack plugin that runs/watches another config
https://github.com/diegohaz/webpack-child-config-plugin
webpack webpack-plugin
Last synced: about 1 year ago
JSON representation
A webpack plugin that runs/watches another config
- Host: GitHub
- URL: https://github.com/diegohaz/webpack-child-config-plugin
- Owner: diegohaz
- License: mit
- Created: 2017-05-01T07:39:57.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-06-03T17:46:09.000Z (about 4 years ago)
- Last Synced: 2024-10-19T10:05:29.655Z (over 1 year ago)
- Topics: webpack, webpack-plugin
- Language: JavaScript
- Homepage:
- Size: 82 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webpack-child-config-plugin
[](https://github.com/diegohaz/nod)
[](https://npmjs.org/package/webpack-child-config-plugin)
[](https://travis-ci.org/diegohaz/webpack-child-config-plugin) [](https://codecov.io/gh/diegohaz/webpack-child-config-plugin/branch/master)
A webpack plugin that runs/watches another config
## Install
$ npm install --save-dev webpack-child-config-plugin
## Usage
```js
import ChildConfigPlugin from 'webpack-child-config-plugin'
const serverConfig = {
...
watch: true
...
}
const clientConfig = {
...
plugins: [
new ChildConfigPlugin(serverConfig, {
// these are the defaults, you can override them
watch: serverConfig.watch,
when: 'done',
compilerCallback: () => {}
})
]
}
```
## License
MIT © [Diego Haz](https://github.com/diegohaz)