@garment/plugin-runner-lighthouse
v0.18.0
Published
<!-- description src/index.ts firstInterface --> Runs Lighthouse
Downloads
4
Readme
@garment/plugin-runner-lighthouse
Runs Lighthouse
Installation
npm i @garment/plugin-runner-lighthouse
or
yarn add @garment/plugin-runner-lighthouse
Example usage
{
"runner": "lighthouse",
"output": "{{projectDir}}/lighthouse-output",
"options": {
"port": 3000,
"budget": "{{projectDir}}/budget.json",
"scoreThreshold": {
"performance": 90,
"accessibility": 90,
"seo": 100,
"pwa": 80,
"best-practices": 80
}
}
}
API
url: string
port: number
chromeFlags: any
budget: path
scoreThreshold: { [key: string]: number; }
config: path
reportFormat: "html" | "json"