Skip to content

Instantly share code, notes, and snippets.

@jeremyfrank
Created July 9, 2023 18:52
Show Gist options
  • Save jeremyfrank/6ff08f87115b031d3b78d52f1d2a5bc2 to your computer and use it in GitHub Desktop.
Save jeremyfrank/6ff08f87115b031d3b78d52f1d2a5bc2 to your computer and use it in GitHub Desktop.
Lighthouse CI config for running lighthouse on multiple URLs
/*
* Lighthouse CI configuration docs:
* https://github.com/GoogleChrome/lighthouse-ci/blob/main/docs/configuration.md
*/
module.exports = {
ci: {
collect: {
// numberOfRuns: 1, // uncomment this line for testing
// use puppeterScript and chromePath if suppressing a modal is necessary
// puppeteerScript: './puppeteer-script.js',
// chromePath: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',
settings: {
// preset: 'desktop', // uncomment this line for desktop
onlyCategories: 'performance',
},
url: [
// add list of urls to test here
]
},
upload: {
target: 'filesystem',
outputDir: 'lhci',
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment