1. @webpack-cli/generators
Webpack-CLI generators
@webpack-cli/generators
Package: @webpack-cli/generators
Created by: webpack
Last modified: Wed, 07 Jun 2023 18:23:19 GMT
Version: 3.0.7
License: MIT
Downloads: 118,471
Repository: https://github.com/webpack/webpack-cli

Install

npm install @webpack-cli/generators
yarn add @webpack-cli/generators

webpack-cli generators

NPM Downloads

Description

This package contains all webpack-cli related yeoman generators.

Installation

 npm i -D webpack-cli @webpack-cli/generators

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 {
  addonGenerator,
  initGenerator,
  loaderGenerator,
  pluginGenerator,
} = require("@webpack-cli/generators");

// ... compose with yeoman env or add a generator to your own yeoman project

Generators

  • Plugin Generator : Creates a webpack plugin project, add starter plugin code
  • Loader Generator : Creates a webpack loader project, add starter loader code
  • Init Generator : Generates new webpack configuration as per user requirements
  • Addon Generator : Generates a webpack project conforming to webpack-defaults

Back to Packages

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin