You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -46,6 +51,44 @@ When you have followed the [Getting Started](https://webpack.js.org/guides/getti
46
51
47
52
Otherwise `npm install --save-dev webpack-cli` or `yarn add webpack-cli --dev` will install it.
48
53
54
+
# Supported arguments and commands
55
+
56
+
```
57
+
58
+
Available Commands
59
+
60
+
init Initialize a new webpack configuration
61
+
migrate Migrate a configuration to a new version
62
+
loader Scaffold a loader repository
63
+
plugin Scaffold a plugin repository
64
+
info Outputs information about your system and dependencies
65
+
serve Run the webpack Dev Server
66
+
67
+
Options
68
+
69
+
--entry string The entry point of your application.
70
+
-c, --config string Provide path to a webpack configuration file
71
+
-m, --merge string Merge a configuration file using webpack-merge
72
+
--progress Print compilation progress during build
73
+
--silent Disable any output that webpack makes
74
+
--help Outputs list of supported flags
75
+
--defaults Allow webpack to set defaults aggresively
76
+
-o, --output string Output location of the file generated by webpack
77
+
--plugin string Load a given plugin
78
+
-g, --global string[] Declares and exposes a global variable
79
+
-t, --target string Sets the build target
80
+
-w, --watch Watch for files changes
81
+
-h, --hot Enables Hot Module Replacement
82
+
-s, --sourcemap string Determine source maps to use
83
+
--prefetch string Prefetch this request
84
+
-j, --json Prints result as JSON
85
+
--standard Prints standard output
86
+
-d, --dev Run development build
87
+
-p, --prod Run production build
88
+
--version Get current version
89
+
--node-args string[] NodeJS flags
90
+
```
91
+
49
92
## Packages
50
93
51
94
We organize webpack CLI as a multi-package repository using [lerna](https://github.com/lerna/lerna). Every command has a dedicated subfolder in the `packages` Folder. Here's a summary of commands provided by the CLI.
@@ -54,7 +97,7 @@ We organize webpack CLI as a multi-package repository using [lerna](https://gith
54
97
55
98
Supporting developers is an important task for webpack CLI. Thus, webpack CLI provides different commands for many common tasks.
56
99
57
-
-[`webpack-cli create`](./packages/init/README.md#webpack-cli-create) - Create a new webpack configuration.
100
+
-[`webpack-cli init`](./packages/init/README.md#webpack-cli-init) - Create a new webpack configuration.
58
101
-[`webpack-cli info`](./packages/info/README.md#webpack-cli-info) - Returns information related to the local environment.
59
102
-[`webpack-cli migrate`](./packages/migrate/README.md#webpack-cli-migrate) - Migrate project from one version to another.
60
103
-[`webpack-cli generate-plugin`](./packages/generate-plugin/README.md#webpack-cli-generate-plugin) - Initiate new plugin project.
0 commit comments