wpcli-webpack-plugin
v2.0.1
Published
Webpack plugin for wp-cli
Downloads
6
Readme
wpcli-webpack-plugin
Webpack plugin for wp-cli
Install
npm install --save-dev wpcli-webpack-plugin
Usage
import WpCliWebpackPlugin from 'wpcli-webpack-plugin';
export default {
plugins: [
new WpCliWebpackPlugin({
args: ['cli', 'version']
}, {
bin: 'path/to/wp-cli.phar',
})
]
};
API
command
(require)string
orarray
- Executable command or commands.options
(optional)object
- Options.bin
- Path towp-cli
bin.
Related
- wpcli - Api for this package.
Contribution
Feel free to push your code if you agree with publishing under the MIT license.