Webpack Cli

Webpack's Command Line Interface
Alternatives To Webpack Cli
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Webpack Cli2,53782,529121,246a day ago123June 07, 202324mitJavaScript
Webpack's Command Line Interface
Ngx Build Plus1,167851239 months ago81November 12, 2023184TypeScript
Extend the Angular CLI's default build behavior without ejecting, e. g. for Angular Elements
Angular Librarian9517336 years ago28December 19, 201710mitJavaScript
An Angular 2+ scaffolding setup for creating libraries
Angular Cli Webpack70335 years ago29October 25, 20184mitTypeScript
Webpack configuration modifier for @angular/cli
Webpackize4
7 months ago10mitTypeScript
A predefined configuration for webpack.config.js
Preact Cli Decss2
6 years agomitJavaScript
Preact CLI configuration plugin for DeCss
Alternatives To Webpack Cli
Select To Compare


Alternative Project Comparisons
Readme

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, the init command will guide you through setting up a project. Run the command as stated below.

npm i webpack-cli @webpack-cli/init
npx webpack-cli 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 maintain it.

Code of Conduct

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

Popular Command Line Projects
Popular Webpack Configuration Projects
Popular Command Line Interface Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Javascript
Cli
Webpack Configuration