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
Copy file name to clipboardexpand all lines: README.md
+2-9
Original file line number
Diff line number
Diff line change
@@ -60,10 +60,7 @@ Thus, webpack CLI provides different commands for many common tasks.
60
60
-[`build|bundle|b [entries...] [options]`](https://webpack.js.org/api/cli/#build) - Run webpack (default command, can be omitted).
61
61
-[`configtest|t [config-path]`](https://webpack.js.org/api/cli/#configtest) - Validate a webpack configuration.
62
62
-[`help|h [command] [option]`](https://webpack.js.org/api/cli/#help) - Display help for commands and options.
63
-
-[`init|create|new|c|n [generation-path] [options]`](https://webpack.js.org/api/cli/#init) - Create a new webpack project.
64
63
-[`info|i [options]`](https://webpack.js.org/api/cli/#info) - Returns information related to the local environment.
65
-
-[`plugin|p [output-path] [options]`](https://webpack.js.org/api/cli/#plugin) - Initiate new plugin project.
66
-
-[`loader|l [output-path] [options]`](https://webpack.js.org/api/cli/#loader) - Initiate new loader project.
67
64
-[`serve|server|s [entries...] [options]`](https://webpack.js.org/api/cli/#serve) - Use webpack with a development server that provides live reloading.
68
65
-[`version|v [commands...]`](https://webpack.js.org/api/cli/#version) - Output the version number of `webpack`, `webpack-cli`, `webpack-dev-server`, and commands.
69
66
-[`watch|w [entries...] [options]`](https://webpack.js.org/api/cli/#watch) - Run webpack and watch for files changes.
@@ -74,14 +71,10 @@ If you have followed the [Getting Started](https://webpack.js.org/guides/getting
74
71
75
72
Otherwise, you would need to install webpack CLI and the packages you want to use.
76
73
77
-
If you want to create a fresh webpack project, the `init` command will guide you through setting up a project. Run the command as stated below.
74
+
If you want to create a fresh webpack project run the command as stated below:
78
75
79
76
```sh
80
-
npm i webpack-cli @webpack-cli/init
81
-
```
82
-
83
-
```sh
84
-
npx webpack-cli init
77
+
npx create-webpack-app init
85
78
```
86
79
87
80
You will then be prompted for some questions about which features you want to use, such as `scss`, `typescript`, `PWA` support or other features.
0 commit comments