Files
novalon-website/lighthouserc.json
T
张翔 f5dec95a83 feat: 添加管理后台页面和功能,优化测试和性能配置
refactor: 重构页面导航和滚动逻辑,提升用户体验

test: 更新测试配置和用例,增加覆盖率和稳定性

perf: 优化性能指标和阈值,适应开发环境需求

ci: 添加Lighthouse CI工作流,集成性能测试

docs: 更新API文档和健康检查端点

fix: 修复登录页面和表单提交问题

style: 调整响应式布局和可访问性改进

chore: 更新依赖项和脚本配置
2026-03-24 10:11:30 +08:00

58 lines
1.3 KiB
JSON

ci:
collect:
numberOfRuns: 3
startServerCommand: npm run start
startServerReadyPattern: 'Local:'
url:
- http://localhost:3000/
- http://localhost:3000/about
- http://localhost:3000/services
- http://localhost:3000/products
- http://localhost:3000/cases
- http://localhost:3000/news
- http://localhost:3000/contact
settings:
preset: desktop
onlyCategories:
- performance
- accessibility
- best-practices
- seo
assert:
assertions:
categories:performance:
- error
- minScore: 0.9
categories:accessibility:
- error
- minScore: 0.9
categories:best-practices:
- error
- minScore: 0.9
categories:seo:
- error
- minScore: 0.9
first-contentful-paint:
- error
- maxNumericValue: 2000
largest-contentful-paint:
- error
- maxNumericValue: 3000
cumulative-layout-shift:
- error
- maxNumericValue: 0.1
total-blocking-time:
- error
- maxNumericValue: 300
speed-index:
- error
- maxNumericValue: 3000
upload:
target: temporary-public-storage
settings:
output: html
outputPath: lighthouse-reports