ant-design/lighthouserc.js

20 lines
528 B
JavaScript
Raw Normal View History

module.exports = {
ci: {
collect: {
staticDistDir: './_site',
url: ['http://localhost/', 'http://localhost/components/button/'],
},
upload: {
target: 'temporary-public-storage',
},
assert: {
assertions: {
'categories:performance': ['error', { minScore: 0.1 }],
'categories:accessibility': ['error', { minScore: 0.6 }],
'categories:best-practices': ['error', { minScore: 0.6 }],
'categories:seo': ['error', { minScore: 0.6 }],
},
},
},
};