Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
paulirish committed May 31, 2017
1 parent 42151b1 commit 65aa057
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,18 @@ launchChromeAndRunLighthouse('https://example.com', flags).then(results => {
});
```

## Performance-only Lighthouse run
### Performance-only Lighthouse run

Many modules consuming Lighthouse are only interested in the performance numbers.
Lighthouse ships with a [performance-only config](https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-core/config/perf.json) that you can use:

```js
const perfConfig: any = require('lighthouse/lighthouse-core/config/perf.json');

// ...

lighthouse(url, flags, perfConfig)
launchChromeAndRunLighthouse(url, flags, perfConfig).then( // ...
```
You can also craft your own config (e.g. [plots.json](https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-core/config/plots.json)) for completely custom runs.
You can also craft your own config (e.g. [plots.json](https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-core/config/plots.json)) for completely custom runs. Also see the [basic custom audit recipe](https://github.com/GoogleChrome/lighthouse/tree/master/docs/recipes/custom-audit).
### Turn on logging
Expand Down

0 comments on commit 65aa057

Please sign in to comment.