forked from OlaGreat/NovaSupport
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlighthouserc.js
More file actions
24 lines (24 loc) · 786 Bytes
/
Copy pathlighthouserc.js
File metadata and controls
24 lines (24 loc) · 786 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
/** @type {import('@lhci/cli').LighthouseRcConfig} */
module.exports = {
ci: {
collect: {
startServerCommand: "npm run start",
startServerReadyPattern: "ready on",
url: ["http://localhost:3000"],
numberOfRuns: 1,
},
assert: {
assertions: {
"categories:performance": ["error", { minScore: 0.7 }],
"categories:accessibility": ["warn", { minScore: 0.8 }],
"first-contentful-paint": ["error", { maxNumericValue: 3000 }],
"largest-contentful-paint": ["error", { maxNumericValue: 4000 }],
"cumulative-layout-shift": ["error", { maxNumericValue: 0.25 }],
"total-blocking-time": ["warn", { maxNumericValue: 600 }],
},
},
upload: {
target: "temporary-public-storage",
},
},
};