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-loader

NPM Downloads

Description

This package contains the logic to initiate new loader projects.

Installation

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

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 generateLoader = require('@webpack-cli/generate-loader').default;

generateLoader();

CLI (via webpack-cli)

npx webpack-cli loader

Optionally specify a path for generating the loader template.

npx webpack-cli loader [path]