webpack-child-config-plugin
v0.1.3
Published
A webpack plugin that runs/watches another config
Downloads
40
Maintainers
Readme
webpack-child-config-plugin
A webpack plugin that runs/watches another config
Install
$ npm install --save-dev webpack-child-config-plugin
Usage
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