Skip to content

Commit 582e316

Browse files
docs: fix
1 parent c634518 commit 582e316

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

README.md

+2-9
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,7 @@ Thus, webpack CLI provides different commands for many common tasks.
6060
- [`build|bundle|b [entries...] [options]`](https://webpack.js.org/api/cli/#build) - Run webpack (default command, can be omitted).
6161
- [`configtest|t [config-path]`](https://webpack.js.org/api/cli/#configtest) - Validate a webpack configuration.
6262
- [`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.
6463
- [`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.
6764
- [`serve|server|s [entries...] [options]`](https://webpack.js.org/api/cli/#serve) - Use webpack with a development server that provides live reloading.
6865
- [`version|v [commands...]`](https://webpack.js.org/api/cli/#version) - Output the version number of `webpack`, `webpack-cli`, `webpack-dev-server`, and commands.
6966
- [`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
7471

7572
Otherwise, you would need to install webpack CLI and the packages you want to use.
7673

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:
7875

7976
```sh
80-
npm i webpack-cli @webpack-cli/init
81-
```
82-
83-
```sh
84-
npx webpack-cli init
77+
npx create-webpack-app init
8578
```
8679

8780
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

Comments
 (0)