Skip to content

Commit

Permalink
docs: add API usage in README (#3973)
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Oct 24, 2021
1 parent 8f66c22 commit 74deac7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -26,6 +26,7 @@ fast in-memory access to the webpack assets.
- [Usage](#usage)
- [With the CLI](#with-the-cli)
- [With NPM Scripts](#with-npm-scripts)
- [With the API](#with-the-api)
- [The Result](#the-result)
- [Browser Support](#browser-support)
- [Support](#support)
Expand Down Expand Up @@ -201,6 +202,12 @@ npm run serve
NPM will automagically reference the binary in `node_modules` for you, and
execute the file or command.

### With the API

While it's recommended to run webpack-dev-server via the CLI, you may also choose to start a server via the API.

See the related [API documentation for `webpack-dev-server`](https://webpack.js.org/api/webpack-dev-server/).

### The Result

Either method will start a server instance and begin listening for connections
Expand Down

0 comments on commit 74deac7

Please sign in to comment.