webpack-cli

Webpack's Command Line Interface

Latest version: 6.0.1 registry icon
Maintenance score
100
Safety score
100
Popularity score
82
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
6.0.1 0 0 0 0 0
6.0.0 0 0 0 0 0
5.1.4 0 0 0 0 0
5.1.3 0 0 0 0 0
5.1.2 0 0 0 0 0
5.1.1 0 0 0 0 0
5.1.0 0 0 0 0 0
5.0.2 0 0 0 0 0
5.0.1 0 0 0 0 0
5.0.0 0 0 0 0 0
4.10.0 0 0 0 0 0
4.9.2 0 0 0 0 0
4.9.1 0 0 0 0 0
4.9.0 0 0 0 0 0
4.8.0 0 0 0 0 0
4.7.2 0 0 0 0 0
4.7.1 0 0 0 0 0
4.7.0 0 0 0 0 0
4.6.0 0 0 0 0 0
4.5.0 0 0 0 0 0
4.4.0 0 0 0 0 0
4.3.1 0 0 0 0 0
4.3.0 0 0 0 0 0
4.2.0 0 0 0 0 0
4.1.0 0 0 0 0 0
4.0.0 0 0 0 0 0
3.3.12 0 0 0 0 0
3.3.11 0 0 0 0 0
3.3.10 0 0 0 0 0
3.3.9 0 0 0 0 0
3.3.8 0 0 0 0 0
3.3.7 0 0 0 0 0
3.3.6 0 0 0 0 0
3.3.5 0 0 0 0 0
3.3.4 0 0 0 0 0
3.3.3 0 0 0 0 0
3.3.2 0 0 0 0 0
3.3.1 0 0 0 0 0
3.3.0 0 0 0 0 0
3.2.3 0 0 0 0 0
3.2.2 0 0 0 0 0
3.2.1 0 0 0 0 0
3.2.0 0 0 0 0 0
3.1.2 0 0 0 0 0
3.1.1 0 0 0 0 0
3.1.0 0 0 0 0 0
3.0.8 0 0 0 0 0
3.0.7 0 0 0 0 0
3.0.6 0 0 0 0 0
3.0.5 0 0 0 0 0
3.0.4 0 0 0 0 0
3.0.3 0 0 0 0 0
3.0.2 0 0 0 0 0
3.0.1 0 0 0 0 0
3.0.0 0 0 0 0 0
2.1.5 0 0 0 0 0
2.1.4 0 0 0 0 0
2.1.3 0 0 0 0 0
2.1.2 0 0 0 0 0
2.1.1 0 0 0 0 0
2.1.0 0 0 0 0 0
2.0.15 0 0 0 0 0
2.0.14 0 0 0 0 0
2.0.13 0 0 0 0 0
2.0.12 0 0 0 0 0
2.0.11 0 0 0 0 0
2.0.10 0 0 0 0 0
2.0.9 0 0 0 0 0
2.0.8 0 0 0 0 0
2.0.7 0 0 0 0 0
2.0.6 0 0 0 0 0
2.0.5 0 0 0 0 0
2.0.4 0 0 0 0 0
2.0.3 0 0 0 0 0
2.0.2 0 0 0 0 0
2.0.1 0 0 0 0 0
2.0.0 0 0 0 0 0
1.5.3 0 0 0 0 0
1.5.2 0 0 0 0 0
1.5.1 0 0 0 0 0
1.5.0 0 0 0 0 0
1.4.8 0 0 0 0 0
1.4.7 0 0 0 0 0
1.4.6 0 0 0 0 0
1.4.5 0 0 0 0 0
1.4.4 0 0 0 0 0
1.4.3 0 0 0 0 0
1.4.2 0 0 0 0 0
1.4.1 0 0 0 0 0
1.4.0 0 0 0 0 0
1.3.9 0 0 0 0 0
1.3.8 0 0 0 0 0
1.3.7 0 0 0 0 0
1.3.5 0 0 0 0 0
1.3.4 0 0 0 0 0
1.3.3 0 0 0 0 0
1.3.2 0 0 0 0 0
1.3.1 0 0 0 0 0
1.3.0 0 0 0 0 0
1.0.0 0 0 0 0 0

Stability
Latest release:

6.0.1 - This version is safe to use because it has no known security vulnerabilities at this time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

MIT   -   MIT License

Not a wildcard

Not proprietary

OSI Compliant



webpack CLI

The official Command Line Interface of webpack


npm Build Status codecov Install Size GitHub Discussions Discord

Table of Contents

Introduction

Webpack CLI provides the interface of options webpack uses in its configuration file. The CLI options override options passed in the configuration file.

The CLI provides a rich set of commands that helps you develop your application faster.

How to install

If you have followed the Getting Started guide of webpack then webpack CLI is already installed!

Otherwise npm install --save-dev webpack-cli, yarn add webpack-cli --dev or pnpm add --D webpack-cli will install it.

Supported arguments and commands

Get to know what are the available commands and arguments here.

Packages

We organize webpack CLI as a multi-package repository using lerna. The main CLI logic using options, resides in packages/webpack-cli, while commands supported by the CLI, has dedicated subfolders in the folder packages.

A summary of supported commands is described below.

Commands

Supporting developers is an important task for webpack CLI. Thus, webpack CLI provides different commands for many common tasks.

Getting started

If you have followed the Getting Started guide of webpack, then webpack CLI is already installed!

Otherwise, you would need to install webpack CLI and the packages you want to use.

If you want to create a fresh webpack project run the command as stated below:

npx create-new-webpack-app init

You will then be prompted for some questions about which features you want to use, such as scss, typescript, PWA support or other features.

Exit codes and their meanings

Exit Code Description
0 Success
1 Errors from webpack
2 Configuration/options problem or an internal error

Contributing and Internal Documentation

The webpack family welcomes any contributor, small or big. We are happy to elaborate, guide you through the source code and find issues you might want to work on! To get started have a look at our contribution documentation.

Funding

If you like webpack, please consider donating through Open Collective to help us keep the project relevant.

Code of Conduct

Guidelines to how the webpack organization expects you to behave is documented under Code of Conduct