webpack-child-config-plugin

0.1.3 • Public • Published

webpack-child-config-plugin

Generated with nod NPM version Build Status Coverage Status

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

Package Sidebar

Install

npm i webpack-child-config-plugin

Weekly Downloads

12

Version

0.1.3

License

MIT

Unpacked Size

5.28 kB

Total Files

5

Last publish

Collaborators

  • diegohaz