Skip to content

Lighthouse Config and Option Overrides JSON File

Compare
Choose a tag to compare
@adamhenson adamhenson released this 19 Apr 00:27
· 96 commits to master since this release

Introduces a new overridesJsonFile which is consumed by path.resolve(overridesJsonFile).

Usage

Contents of this overrides JSON file can have two possible fields; options and config. These two fields are eventually used by Lighthouse to populate opts and config arguments respectively as illustrated in Using programmatically. The two objects populating this JSON file are merged shallowly with the default config and options.

Example Content of overridesJsonFile

{
  "config": {
    "settings": {
      "onlyCategories": ["performance"]
    }
  },
  "options": {
    "chromeFlags": [
      "--disable-dev-shm-usage"
    ]
  }
}

Addresses Open Issues