mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
31fa14a742
* Update lighthouse-ci.yml * Create lighthouserc.js * Update index.js * Add url * fix url * fix assertions
20 lines
528 B
JavaScript
20 lines
528 B
JavaScript
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 }],
|
|
},
|
|
},
|
|
},
|
|
};
|