A webpack plugin that runs/watches another config
MIT License
A webpack plugin that runs/watches another config
$ npm install --save-dev webpack-child-config-plugin
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: () => {}
})
]
}
MIT © Diego Haz