Skip to content

Commit 95796c3

Browse files
ematipicoevenstensberg
authored andcommitted
docs(pkg): readme file for add package (#498)
* docs(pkg): readme file for add package * docs(add): fix missing content
1 parent df414e6 commit 95796c3

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

packages/add/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# webpack-cli add
2+
3+
## Description
4+
5+
This package contains the logic to add new properties to the a webpack configuration file. It will run a generator that prompts the user for questions of which property to add to their webpack configuration file.
6+
7+
## Installation
8+
9+
```bash
10+
npm i -D webpack-cli @webpack-cli/add
11+
```
12+
13+
## Usage
14+
15+
To run the scaffolding instance programmatically, install it as a dependency. When using the package programmatically, one does not have to install webpack-cli.
16+
17+
### Node
18+
```js
19+
const add = require("@webpack-cli/add");
20+
add();
21+
```
22+
23+
### CLI (via `webpack-cli`)
24+
```bash
25+
npx webpack-cli add
26+
```

0 commit comments

Comments
 (0)