webpack-cli
CLI for webpack & friends
Last updated 7 days ago by ev1stensberg .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install webpack-cli 
SYNC missed versions from official npm registry.

webpack CLI

The official CLI of webpack


npm Build Status Build2 Status deps Code Climate chat on gitter Install Size Downloads lerna GitHub contributors

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.

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.
  • webpack-scaffold - Utilities to create a webpack scaffold.

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 we 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.

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.

We show this message in the terminal once a week, if you want you can disable it by setting the environment variable DISABLE_OPENCOLLECTIVE=true or CI=true.

Current Tags

  • 4.0.0-alpha-4                                ...           4.0.0.alpha.4 (6 months ago)
  • 3.3.4                                ...           latest (7 days ago)

80 Versions

  • 3.3.4                                ...           7 days ago
  • 3.3.3                                ...           11 days ago
  • 3.3.2                                ...           a month ago
  • 3.3.1                                ...           2 months ago
  • 3.3.0                                ...           3 months ago
  • 3.2.3                                ...           4 months ago
  • 3.2.2                                ...           4 months ago
  • 3.2.1                                ...           5 months ago
  • 3.2.0                                ...           6 months ago
  • 4.0.0-alpha-4                                ...           6 months ago
  • 4.0.0-alpha-3                                ...           6 months ago
  • 4.0.0-alpha-2                                ...           6 months ago
  • 4.0.0-alpha-1                                ...           6 months ago
  • 4.0.0-alpha                                ...           6 months ago
  • 3.1.2                                ...           9 months ago
  • 3.1.1                                ...           9 months ago
  • 3.1.0                                ...           a year ago
  • 3.0.8                                ...           a year ago
  • 3.0.7                                ...           a year ago
  • 3.0.6                                ...           a year ago
  • 3.0.5                                ...           a year ago
  • 3.0.4                                ...           a year ago
  • 3.0.3                                ...           a year ago
  • 3.0.2                                ...           a year ago
  • 3.0.1                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 2.1.5                                ...           a year ago
  • 2.1.4                                ...           a year ago
  • 0.0.8-development                                ...           a year ago
  • 0.0.7-development                                ...           a year ago
  • 0.0.6-development                                ...           a year ago
  • 0.0.5-development                                ...           a year ago
  • 0.0.4-development                                ...           a year ago
  • 0.0.3-development                                ...           a year ago
  • 0.0.2-development                                ...           a year ago
  • 0.0.1-development                                ...           a year ago
  • 0.0.0-development                                ...           a year ago
  • 2.1.3                                ...           a year ago
  • 2.1.2                                ...           a year ago
  • 2.1.1                                ...           a year ago
  • 2.1.0                                ...           a year ago
  • 2.0.15                                ...           a year ago
  • 2.0.14                                ...           a year ago
  • 2.0.13                                ...           a year ago
  • 2.0.12                                ...           a year ago
  • 2.0.11                                ...           a year ago
  • 2.0.10                                ...           a year ago
  • 2.0.9                                ...           a year ago
  • 2.0.8                                ...           a year ago
  • 2.0.7                                ...           a year ago
  • 2.0.6                                ...           a year ago
  • 2.0.5                                ...           a year ago
  • 2.0.4                                ...           a year ago
  • 2.0.3                                ...           a year ago
  • 2.0.2                                ...           a year ago
  • 2.0.1                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 1.5.3                                ...           a year ago
  • 1.5.2                                ...           2 years ago
  • 1.5.1                                ...           2 years ago
  • 1.5.0                                ...           2 years ago
  • 1.4.8                                ...           2 years ago
  • 1.4.7                                ...           2 years ago
  • 1.4.6                                ...           2 years ago
  • 1.4.5                                ...           2 years ago
  • 1.4.4                                ...           2 years ago
  • 1.4.3                                ...           2 years ago
  • 1.4.2                                ...           2 years ago
  • 1.4.1                                ...           2 years ago
  • 1.4.0                                ...           2 years ago
  • 1.3.9                                ...           2 years ago
  • 1.3.8                                ...           2 years ago
  • 1.3.7                                ...           2 years ago
  • 1.3.5                                ...           2 years ago
  • 1.3.4                                ...           2 years ago
  • 1.3.3                                ...           2 years ago
  • 1.3.2                                ...           2 years ago
  • 1.3.1                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.0.0                                ...           4 years ago
Downloads
Today 62
This Week 11,330
This Month 72,141
Last Day 5,629
Last Week 34,720
Last Month 130,167
Dependencies (12)
Dependents (2011)

Copyright 2014 - 2016 © taobao.org |