Spawn Webpack Plugin
Run terminal commands with webpack
Installation
yarn add --dev spawn-webpack-plugin
or using NPM:
npm i --save-dev spawn-webpack-plugin
Usage
Inside a webpack.config.js
file, on plugins entry, add:
const SpawnPlugin = // your config... plugins: // your plugins... command: 'yarn lint' // Required. Just put a valid command you can run on terminal sync: true // Optional. `false` by default spawn: // Optional. Just use it if you want to use another version of `require('child_process').spawn`
License
MIT © Fernando Daciuk