Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Webpack's Command Line Interface

License

NotificationsYou must be signed in to change notification settings

webpack/webpack-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

webpack CLI

The official CLI of webpack


npmBuild StatuscodecovDependenciesInstall SizeChat on gitter

Table of Contents

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 theGetting Started guide of webpack then webpack CLI is already installed!

Otherwisenpm install --save-dev webpack-cli oryarn add webpack-cli --dev will install it.

Supported arguments and commands

Get to know what are the available commands and argumentshere.

Packages

We organize webpack CLI as a multi-package repository usinglerna. The main CLI logic resides inpackages/webpack-cli, while commands supported by the CLI, has dedicated subfolders in the folderpackages. 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.

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 theGetting 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 theinit command to create a new configuration file:

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

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

Exit codes and their meanings

Exit CodeDescription
0Success
1Errors from webpack
2Configuration/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 ourcontribution documentation.

Open Collective

If you likewebpack, please consider donating to ourOpen Collective to help us maintain it.

Code of Conduct

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


[8]ページ先頭

©2009-2025 Movatter.jp