🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

@webpack-cli/init

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webpack-cli/init

init command for webpack-cli

beta
npmnpm
Version
1.0.1-alpha.5
Version published
Weekly downloads
3.7K
-10.5%
Maintainers
2
Weekly downloads
 
Created
Source

webpack-cli init

NPM Downloads

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').default;

// 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)

Via defaults

npx webpack-cli init

To generate default configs

npx webpack-cli init --auto

Via custom scaffold

  • Using package on npm
npx webpack-cli init webpack-scaffold-[name]
  • Using path to a local directory
npx webpack-cli init [path]

FAQs

Package last updated on 02 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts