Skip to content

Commit

Permalink
docs: example for flags
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Aug 20, 2024
1 parent e18b1a1 commit 2d552b6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ export default config = {
};
```

You can also add Lighthouse flags by a JSON file ```--lighthouse.flags flag.json```.
You can also add Lighthouse flags by a JSON file ```--lighthouse.flags flag.json```. If you pass on command like flags that contains hyphens, they are removed and converted internally in Lighthouse, so for example to get the command line flag `--extra-headers` to work, the JSON should be like this:

```JSON
{
"extraHeaders": { "key": "value"}
}
```


Read all about configuring Lighthouse at [https://github.com/GoogleChrome/lighthouse/blob/master/docs/configuration.md](https://github.com/GoogleChrome/lighthouse/blob/master/docs/configuration.md).

0 comments on commit 2d552b6

Please sign in to comment.