Webpack plugin for wp-cli
npm install wpcli-webpack-plugin




Webpack plugin for wp-cli
``shell`
npm install --save-dev wpcli-webpack-plugin
`js
import WpCliWebpackPlugin from 'wpcli-webpack-plugin';
export default {
plugins: [
new WpCliWebpackPlugin({
args: ['cli', 'version']
}, {
bin: 'path/to/wp-cli.phar',
})
]
};
`
- command (require) string or array - Executable command or commands.
- options (optional) object - Options.
- bin - Path to wp-cli` bin.
- wpcli - Api for this package.
Feel free to push your code if you agree with publishing under the MIT license.