forked from shopware/frontends
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lighthouserc.js
50 lines (50 loc) · 1.34 KB
/
lighthouserc.js
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
module.exports = {
ci: {
collect: {
numberOfRuns: 5,
url: [
"https://frontends-demo.vercel.app/",
"https://frontends-demo.vercel.app/Products/",
"https://frontends-demo.vercel.app/Summer-BBQ/",
],
settings: {
onlyCategories: [
"performance",
"accessibility",
"best-practices",
"seo",
],
skipAudits: ["uses-http2"],
chromeFlags: "--no-sandbox",
},
},
assert: {
assertions: {
"categories:performance": [
"warn",
{ minScore: 0.9, aggregationMethod: "median-run" },
"error",
{ minScore: 0.8, aggregationMethod: "median-run" },
],
"categories:accessibility": [
"warn",
{ minScore: 0.9, aggregationMethod: "median-run" },
"error",
{ minScore: 0.8, aggregationMethod: "median-run" },
],
"categories:best-practices": [
"warn",
{ minScore: 0.9, aggregationMethod: "median-run" },
"error",
{ minScore: 0.8, aggregationMethod: "median-run" },
],
"categories:seo": [
"warn",
{ minScore: 0.9, aggregationMethod: "median-run" },
"error",
{ minScore: 0.8, aggregationMethod: "median-run" },
],
},
},
},
};