-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlighthouserc.cjs
More file actions
28 lines (28 loc) · 912 Bytes
/
Copy pathlighthouserc.cjs
File metadata and controls
28 lines (28 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/** @type {import('@lhci/cli').LHConfig} */
module.exports = {
ci: {
collect: {
staticDistDir: "./dist",
numberOfRuns: 2,
settings: {
preset: "desktop",
},
},
assert: {
assertions: {
"categories:performance": ["error", { minScore: 0.6 }],
"categories:accessibility": ["error", { minScore: 0.85 }],
"categories:best-practices": ["warn", { minScore: 0.85 }],
// PWA category deprecated in Lighthouse 12+; installability covered by best-practices
},
},
upload: {
target: "filesystem",
outputDir: "./lhci-reports",
// GITHUB_TOKEN (CI) or LHCI_GITHUB_APP_TOKEN — suppresses healthcheck warning,
// enables optional PR status checks if you switch to temporary-public-storage
githubToken:
process.env.GITHUB_TOKEN || process.env.LHCI_GITHUB_APP_TOKEN || undefined,
},
},
};