-
-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(pkg): readme file for add package (#498)
* docs(pkg): readme file for add package * docs(add): fix missing content
- Loading branch information
1 parent
df414e6
commit 95796c3
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# webpack-cli add | ||
|
||
## Description | ||
|
||
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. | ||
|
||
## Installation | ||
|
||
```bash | ||
npm i -D webpack-cli @webpack-cli/add | ||
``` | ||
|
||
## Usage | ||
|
||
To run the scaffolding instance programmatically, install it as a dependency. When using the package programmatically, one does not have to install webpack-cli. | ||
|
||
### Node | ||
```js | ||
const add = require("@webpack-cli/add"); | ||
add(); | ||
``` | ||
|
||
### CLI (via `webpack-cli`) | ||
```bash | ||
npx webpack-cli add | ||
``` |