Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 626 Bytes

File metadata and controls

32 lines (21 loc) · 626 Bytes

webpack-cli init

Description

This package contains the logic to create a new webpack configuration.

Installation

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

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 init = require("@webpack-cli/init");

// this will run the default init instance
init();

 // we're slicing node.process, ...myPacakges is a webpack-scaffold name/path
init([null, null, ...myPacakges]);

CLI (via webpack-cli)

npx webpack-cli init