@@ -71,16 +71,16 @@ npx webpack build --config ./webpack.config.js --stats verbose
71
71
72
72
### Init
73
73
74
- Used to initialize a new webpack project.
74
+ Used to initialize a new webpack project using ` @webpack-cli/create-webpack-app ` .
75
75
76
76
``` bash
77
- npx webpack init [generation-path] [options]
77
+ npx create- webpack-app init [generation-path] [options]
78
78
```
79
79
80
80
** example**
81
81
82
82
``` bash
83
- npx webpack init ./my-app --force --template=default
83
+ npx create- webpack-app init ./my-app --force --template=default
84
84
```
85
85
86
86
#### Generation Path
@@ -101,20 +101,25 @@ Name of template to generate.
101
101
102
102
To generate a project without questions. When enabled, the default answer for each question will be used.
103
103
104
- T> See the [ full documentation of ` webpack init ` command] ( https://github.com/webpack/webpack-cli/blob/master/packages/generators/INIT.md ) .
104
+ #### Templates supported
105
+
106
+ - ` --template=default ` - Default template with basic configuration.
107
+ - ` --template=react ` - Template with React configuration.
108
+ - ` --template=vue ` - Template with Vue configuration.
109
+ - ` --template=svelte ` - Template with Svelte configuration.`
105
110
106
111
### Loader
107
112
108
113
Scaffold a loader.
109
114
110
115
``` bash
111
- npx webpack loader [output-path] [options]
116
+ npx create- webpack-app loader [output-path] [options]
112
117
```
113
118
114
119
** example**
115
120
116
121
``` bash
117
- npx webpack loader ./my-loader --template=default
122
+ npx create- webpack-app loader ./my-loader --template=default
118
123
```
119
124
120
125
#### Output Path
@@ -134,13 +139,13 @@ Type of template.
134
139
Scaffold a plugin.
135
140
136
141
``` bash
137
- npx webpack plugin [output-path] [options]
142
+ npx create- webpack-app plugin [output-path] [options]
138
143
```
139
144
140
145
** example**
141
146
142
147
``` bash
143
- npx webpack plugin ./my-plugin --template=default
148
+ npx create- webpack-app plugin ./my-plugin --template=default
144
149
```
145
150
146
151
#### Output Path
@@ -155,6 +160,8 @@ Path to the output directory, e.g. `./plugin-name`.
155
160
156
161
Type of template.
157
162
163
+ T> See the [ full documentation of ` create-webpack-app ` ] ( https://github.com/webpack/webpack-cli/blob/master/packages/create-webpack-app/README.md ) .
164
+
158
165
### Info
159
166
160
167
Outputs information about your system.
0 commit comments