Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 835 Bytes

README.md

File metadata and controls

40 lines (25 loc) · 835 Bytes

webpack-cli generate-plugin

NPM Downloads

Description

This package contains the logic to initiate new plugin projects.

Installation

npm i -D webpack-cli @webpack-cli/generate-plugin

Usage

To run the package programmatically, install it as a dependency. When using the package programmatically, one does not have to install webpack-cli.

Node

const generatePlugin = require('@webpack-cli/generate-plugin').default;

generatePlugin();

CLI (via webpack-cli)

npx webpack-cli plugin

Optionally specify a path for generating the plugin template.

npx webpack-cli plugin [path]