This package contains the logic to initiate new plugin projects.
npm i -D webpack-cli @webpack-cli/generate-plugin
To run the package programmatically, install it as a dependency. When using the package programmatically, one does not have to install webpack-cli.
const generatePlugin = require('@webpack-cli/generate-plugin').default;
generatePlugin();
npx webpack-cli generate-plugin