Skip to content

Commit

Permalink
docs(dev-server): Add documentation for serveIndex option (#2953)
Browse files Browse the repository at this point in the history
  • Loading branch information
EslamHiko authored and EugeneHlushko committed Apr 19, 2019
1 parent 1f7ad71 commit 00e6773
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/content/configuration/dev-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ contributors:
- Yiidiir
- Loonride
- dmohns
- EslamHiko
---

[webpack-dev-server](https://github.com/webpack/webpack-dev-server) can be used to quickly develop an application. See the [development guide](/guides/development/) to get started.
Expand Down Expand Up @@ -1108,6 +1109,22 @@ Usage via the CLI
webpack-dev-server --quiet
```

## `devServer.serveIndex`

`boolean: true`

Tells dev-server to use [`serveIndex`](https://github.com/expressjs/serve-index) middleware when enabled.

[`serveIndex`](https://github.com/expressjs/serve-index) middleware generates directory listings on viewing directories that don't have an index.html file.

```javascript
module.exports = {
//...
devServer: {
serveIndex: true
}
};
```

## `devServer.setup`

Expand Down

0 comments on commit 00e6773

Please sign in to comment.