Created
November 17, 2022 13:30
-
-
Save iyu88/a1b23f315a57b0b48f91ccde8adb8f19 to your computer and use it in GitHub Desktop.
Example of '.lighthouserc.json'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ci": { | |
"collect": { | |
"staticDistDir": "./build", | |
"url": ["http://localhost:3000"], | |
"numberOfRuns": 5 // 테스트 실행 횟수 (기본값 3) | |
}, | |
"upload": { | |
"target": "filesystem", | |
// 테스트 결과를 저장하는 폴더 경로 | |
"outputDir": "./lhci_reports", | |
// 파일 이름 형식 | |
"reportFilenamePattern": "%%PATHNAME%%-%%DATETIME%%-report.%%EXTENSION%%" | |
}, | |
"assert": { | |
"assertions": { | |
"first-contentful-paint": ["warn", { "minScore": 0.75 }], | |
"largest-contentful-paint": ["warn", { "minScore": 0.75 }] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment