Skip to content

Commit 2ccf9a9

Browse files
authored
docs(init): update init documentation
1 parent 3844671 commit 2ccf9a9

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

packages/init/README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,19 @@ init([null, null, ...myPacakges]);
2727
```
2828

2929
### CLI (via `webpack-cli`)
30+
**For `default` generator**
31+
3032
```bash
3133
npx webpack-cli init
32-
```
34+
```
35+
**For `addon` generator**
36+
1. Using package on `npm`
37+
38+
```bash
39+
npx webpack-cli init webpack-scaffold-[name]
40+
```
41+
2. Using path to local directory
42+
43+
```bash
44+
npx webapck-cli init [path]
45+
```

0 commit comments

Comments
 (0)