Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(clientLogLevel): update clientLogLevel options #2976

Merged
merged 5 commits into from
Jun 12, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/content/configuration/dev-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,27 +175,27 @@ webpack-dev-server --bonjour

## `devServer.clientLogLevel`

`string: 'none' | 'info' | 'error' | 'warning'`
`string: 'silent' | 'trace' | 'debug' | 'info' | 'warn' | 'error'`

When using _inline mode_, the console in your DevTools will show you messages e.g. before reloading, before an error or when [Hot Module Replacement](/concepts/hot-module-replacement/) is enabled. Defaults to `info`.

`devServer.clientLogLevel` may be too verbose, you can turn logging off by setting it to `'none'`.
`devServer.clientLogLevel` may be too verbose, you can turn logging off by setting it to `'silent'`.

__webpack.config.js__

```javascript
module.exports = {
//...
devServer: {
clientLogLevel: 'none'
clientLogLevel: 'silent'
}
};
```

Usage via the CLI

```bash
webpack-dev-server --client-log-level none
webpack-dev-server --client-log-level silent
```

## `devServer.color` - CLI only
Expand Down