0.3.0 • Published 6 years ago

webpack-spawn-plugin v0.3.0

Weekly downloads
90
License
MIT
Repository
github
Last release
6 years ago

webpack-spawn-plugin

Generated with nod NPM version Build Status Coverage Status

A webpack plugin that runs child_process.spawn within compilation.

Install

$ npm install --save-dev webpack-spawn-plugin

Usage

import SpawnPlugin from 'webpack-spawn-plugin'

const config = {
  ...
  plugins: [
    new SpawnPlugin('node', ['.'], options)
  ]
}

Options

when (default: "done")

The Webpack compiler hook during which the process will be spawned.

stdio (default: "inherit")

The output stream to which stdout and stderr will be sent.

persistent (default: false)

Indicates whether the spawned process should be replaced every time the hook is called.

Note: You can pass more options to process.spawn in the options objects.

License

MIT © Diego Haz

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago