Created
July 9, 2023 18:52
-
-
Save jeremyfrank/6ff08f87115b031d3b78d52f1d2a5bc2 to your computer and use it in GitHub Desktop.
Lighthouse CI config for running lighthouse on multiple URLs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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