webpack-cli

WebJar for webpack-cli

License

License

MIT
Categories

Categories

CLI User Interface
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

webpack-cli
Last Version

Last Version

4.3.1
Release Date

Release Date

Type

Type

jar
Description

Description

webpack-cli
WebJar for webpack-cli
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/webpack/webpack-cli

Download webpack-cli

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/webpack-cli/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>webpack-cli</artifactId>
    <version>4.3.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/webpack-cli/
implementation 'org.webjars.npm:webpack-cli:4.3.1'
// https://jarcasting.com/artifacts/org.webjars.npm/webpack-cli/
implementation ("org.webjars.npm:webpack-cli:4.3.1")
'org.webjars.npm:webpack-cli:jar:4.3.1'
<dependency org="org.webjars.npm" name="webpack-cli" rev="4.3.1">
  <artifact name="webpack-cli" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='webpack-cli', version='4.3.1')
)
libraryDependencies += "org.webjars.npm" % "webpack-cli" % "4.3.1"
[org.webjars.npm/webpack-cli "4.3.1"]

Dependencies

compile (13)

Group / Artifact Type Version
org.webjars.npm : discoveryjs__json-ext jar [0.5.0,0.6)
org.webjars.npm » webpack-cli__info jar [1.2.1,2)
org.webjars.npm : commander jar [6.2.0,7)
org.webjars.npm » webpack-cli__serve jar [1.2.1,2)
org.webjars.npm : fastest-levenshtein jar [1.0.12,2)
org.webjars.npm : rechoir jar [0.7.0,0.8)
org.webjars.npm : webpack-merge jar [4.2.2,5)
org.webjars.npm : v8-compile-cache jar [2.2.0,3)
org.webjars.npm : enquirer jar [2.3.6,3)
org.webjars.npm : interpret jar [2.2.0,3)
org.webjars.npm : import-local jar [3.0.2,4)
org.webjars.npm : execa jar [5.0.0,6)
org.webjars.npm : colorette jar [1.2.1,2)

Project Modules

There are no modules declared in this project.

webpack CLI

The official CLI of webpack


npm Build Status codecov Dependencies Install Size Chat on gitter

Table of Contents

About

webpack CLI provides a flexible set of commands for developers to increase speed when setting up a custom webpack project. As of webpack v4, webpack is not expecting a configuration file, but often developers want to create a more custom webpack configuration based on their use-cases and needs. webpack CLI addresses these needs by providing a set of tools to improve the setup of custom webpack configuration.

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. Every command has a dedicated subfolder in the packages folder. Here's a summary of commands provided by the CLI.

Commands

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

Utilities

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

  • utils - Several utilities used across webpack-cli.
  • 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 webpack.config.js configuration file:

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

You will be prompted for some questions about what how you want to generate your config file when running the init command so webpack CLI can provide the best fitting configuration.

webpack CLI Scaffolds

With v3 of webpack CLI, we introduced scaffolding as an integral part of the CLI. Our goal is to simplify the creation of webpack configurations for different purposes. Additionally, sharing such solutions with the community is beneficial and with webpack, we want to allow this. We provide webpack-scaffold as a utility suite for creating these scaffolds. It contains functions that could be of use for creating a scaffold yourself.

You can read more about Scaffolding, learn How to compose a webpack-scaffold? or generate one with webpack-scaffold-starter.

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 documentation on contributing.

Open Collective

If you like webpack, please consider donating to our Open Collective to help us maintain it.

org.webjars.npm

webpack

Versions

Version
4.3.1