Webpack plugin for wp-cli
npm install --save-dev wpcli-webpack-plugin
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.Feel free to push your code if you agree with publishing under the MIT license.