Skip to content

Commit

Permalink
docs: example for lighthouse using headers
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Aug 21, 2024
1 parent a431f80 commit 7b6e3d6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/documentation/sitespeed.io/lighthouse/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,17 @@ module.exports = {
};
```

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).


## Disable GPSI
If you only want to run Lighthouse and not GPSI you can disable it with `----plugins.remove @sitespeed.io/plugin-gpsi`.

Expand Down

0 comments on commit 7b6e3d6

Please sign in to comment.