Configure Lighthouse through the lighthouseOptions key to customize audit categories, thresholds, and behavior.
import { defineUnlighthouseConfig } from 'unlighthouse/config'
export default defineUnlighthouseConfig({
lighthouseOptions: {
throttlingMethod: 'devtools',
},
})
For complete options, see the Lighthouse Configuration docs.
Unlighthouse aims to minimise and simplify configuration, where possible.
For this reason, a number of configurations aliases are provided for your convenience.
You can always configure lighthouse directly if you are comfortable with the configuration.
By default, Unlighthouse will scan the categories: 'performance', 'accessibility', 'best-practices', 'seo'.
The performance category measures Core Web Vitals including LCP, CLS, and INP.
It can be useful to remove certain categories from being scanned to improve scan times. The Unlighthouse UI will adapt to any categories you select.
Only Performance
export default defineUnlighthouseConfig({
lighthouseOptions: {
onlyCategories: ['performance'],
},
})