2.0.1 • Published 7 years ago

wpcli-webpack-plugin v2.0.1

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

wpcli-webpack-plugin

NPM version Travis Build Status dependencies Status devDependencies Status Greenkeeper badge

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 or array - Executable command or commands.

  • options (optional) object - Options.

    • bin - Path to wp-cli bin.

Related

  • wpcli - Api for this package.

Contribution

Feel free to push your code if you agree with publishing under the MIT license.

Changelog

License