Add Lighthouse CI config with >=95 thresholds across 4 categories
This commit is contained in:
28
lighthouserc.cjs
Normal file
28
lighthouserc.cjs
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
module.exports = {
|
||||||
|
ci: {
|
||||||
|
collect: {
|
||||||
|
staticDistDir: './dist',
|
||||||
|
url: [
|
||||||
|
'http://localhost/index.html',
|
||||||
|
'http://localhost/pricing/index.html',
|
||||||
|
'http://localhost/imprint/index.html',
|
||||||
|
'http://localhost/privacy/index.html',
|
||||||
|
],
|
||||||
|
numberOfRuns: 1,
|
||||||
|
settings: {
|
||||||
|
preset: 'desktop',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
assert: {
|
||||||
|
assertions: {
|
||||||
|
'categories:performance': ['error', { minScore: 0.95 }],
|
||||||
|
'categories:accessibility': ['error', { minScore: 0.95 }],
|
||||||
|
'categories:best-practices': ['error', { minScore: 0.95 }],
|
||||||
|
'categories:seo': ['error', { minScore: 0.95 }],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
upload: {
|
||||||
|
target: 'temporary-public-storage',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user