24
.lighthouserc.cjs
Normal file
24
.lighthouserc.cjs
Normal file
@@ -0,0 +1,24 @@
|
||||
module.exports = {
|
||||
ci: {
|
||||
collect: {
|
||||
staticDistDir: './html',
|
||||
settings: {
|
||||
chromeFlags: '--no-sandbox --disable-setuid-sandbox --headless=new --disable-gpu --disable-dev-shm-usage',
|
||||
targets: ['filesystem'],
|
||||
},
|
||||
numberOfRuns: 1
|
||||
},
|
||||
assert: {
|
||||
assertions: {
|
||||
'categories:performance': ['error', {minScore: 0.5}],
|
||||
'categories:accessibility': ['error', {minScore: 0.5}],
|
||||
'categories:best-practices': ['error', {minScore: 0.5}],
|
||||
'categories:seo': ['error', {minScore: 0.5}],
|
||||
},
|
||||
},
|
||||
upload: {
|
||||
target: 'filesystem',
|
||||
outputDir: './.lighthouseci', // C'est ici que Jenkins ira chercher les fichiers
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user