GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - console-cat/webpack-cli: Webpack's Command Line Interface

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

3,020 Commits
3,020 Commits

Folders and files

NameName
Last commit message
Last commit date
.devcontainer
.devcontainer
 
 
.github
.github
 
 
.husky
.husky
 
 
packages
packages
 
 
scripts
scripts
 
 
smoketests
smoketests
 
 
test
test
 
 
.codecov.yml
.codecov.yml
 
 
.cspell.json
.cspell.json
 
 
.editorconfig
.editorconfig
 
 
.eslintignore
.eslintignore
 
 
.eslintrc.js
.eslintrc.js
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.nycrc
.nycrc
 
 
.prettierignore
.prettierignore
 
 
.yarnrc
.yarnrc
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODEOWNERS
CODEOWNERS
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
LICENSE
LICENSE
 
 
OPTIONS.md
OPTIONS.md
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
SERVE-OPTIONS-v3.md
SERVE-OPTIONS-v3.md
 
 
SERVE-OPTIONS-v4.md
SERVE-OPTIONS-v4.md
 
 
commitlint.config.js
commitlint.config.js
 
 
jest.config.js
jest.config.js
 
 
lerna.json
lerna.json
 
 
lint-staged.config.js
lint-staged.config.js
 
 
open-bot.yml
open-bot.yml
 
 
package.json
package.json
 
 
prettier.config.js
prettier.config.js
 
 
tsconfig.json
tsconfig.json
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

webpack CLI

The official CLI of webpack


npm Build Status codecov Install Size Chat on gitter

Table of Contents

  • About
    • How to install
  • Supported arguments and commands
  • Packages
    • Commands
    • Utilities
  • Getting started
  • Exit codes and their meanings
  • Contributing and Internal Documentation
  • Open Collective

About

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

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

Otherwise npm install --save-dev webpack-cli or yarn add webpack-cli --dev 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 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.

  • build|bundle|b [entries...] [options] - Run webpack (default command, can be omitted).
  • configtest|t [config-path] - Validate a webpack configuration.
  • help|h [command] [option] - Display help for commands and options.
  • init|create|new|c|n [generation-path] [options] - Create a new webpack project.
  • info|i [options] - Returns information related to the local environment.
  • migrate|m <config-path> [new-config-path] - Migrate project from one version to another.
  • plugin|p [output-path] [options] - Initiate new plugin project.
  • loader|l [output-path] [options] - Initiate new loader project.
  • serve|server|s [entries...] [options] - Use webpack with a development server that provides live reloading.
  • version|v [commands...] - Output the version number of webpack, webpack-cli, webpack-dev-server, and commands.
  • watch|w [entries...] [options] - Run webpack and watch for files changes.

Utilities

The project has several utility packages which are used by other commands

  • generators - Contains all webpack-cli related yeoman generators.

Getting started

When 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 use the init command to create a new configuration file:

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

You will be prompted for some questions about which features you want to use, such as scss, PWA support or multiple entry-points.

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.

Open Collective

If you like webpack, please consider donating to our 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

About

Webpack's Command Line Interface

webpack.js.org/api/cli

Resources

Readme
License

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.