ant-design/lighthouserc.js
偏右 31fa14a742
test: Update lighthouse-ci.yml (#24598)
* Update lighthouse-ci.yml

* Create lighthouserc.js

* Update index.js

* Add url

* fix url

* fix assertions
2020-05-30 20:37:06 +08:00

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 }],
},
},
},
};