MCPcopy Index your code
hub / github.com/code-pushup/cli / configureLighthousePlugin

Function configureLighthousePlugin

code-pushup.preset.ts:200–229  ·  view source on GitHub ↗
(
  urls: PluginUrls,
)

Source from the content-addressed store, hash-verified

198}
199
200export async function configureLighthousePlugin(
201 urls: PluginUrls,
202): Promise<CoreConfig> {
203 const lhPlugin = await lighthousePlugin(urls);
204 return {
205 plugins: [lhPlugin],
206 categories: [
207 {
208 slug: 'performance',
209 title: 'Performance',
210 refs: lighthouseGroupRefs(lhPlugin, 'performance'),
211 },
212 {
213 slug: 'a11y',
214 title: 'Accessibility',
215 refs: lighthouseGroupRefs(lhPlugin, 'accessibility'),
216 },
217 {
218 slug: 'best-practices',
219 title: 'Best Practices',
220 refs: lighthouseGroupRefs(lhPlugin, 'best-practices'),
221 },
222 {
223 slug: 'seo',
224 title: 'SEO',
225 refs: lighthouseGroupRefs(lhPlugin, 'seo'),
226 },
227 ],
228 };
229}
230
231export function configureAxePlugin(
232 urls: PluginUrls,

Callers 1

Calls 2

lighthousePluginFunction · 0.85
lighthouseGroupRefsFunction · 0.85

Tested by

no test coverage detected