Skip to content

Commit

Permalink
🐛 Fix: outputDir 경로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
shlee9999 committed Nov 16, 2024
1 parent 47e1c72 commit 6bab92a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 165 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const fs = require('fs');
const reportPath = '.lighthouseci/manifest.json';
const reportPath = './lhci_reports/manifest.json';
if (!fs.existsSync(reportPath)) {
console.log('No Lighthouse report found');
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ dev-dist
**/lighthouse.report.html
**/lighthouse/
.lighthouseci/*.html
.lighthouseci/*.json
.lighthouseci/*.json
lhci_reports
151 changes: 0 additions & 151 deletions .lighthouseci/assertion-results.json

This file was deleted.

3 changes: 0 additions & 3 deletions .lighthouseci/links.json

This file was deleted.

20 changes: 11 additions & 9 deletions lighthouserc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@ module.exports = {
},
},
upload: {
target: 'temporary-public-storage',
},
assert: {
preset: 'lighthouse:recommended',
assertions: {
'csp-xss': 'off',
'unused-javascript': 'off',
'uses-http2': 'off',
},
target: 'filesystem',
outputDir: './lhci_reports',
reportFilenamePattern: '%%PATHNAME%%-%%DATETIME%%-report.%%EXTENSION%%',
},
// assert: {
// preset: 'lighthouse:recommended',
// assertions: {
// 'csp-xss': 'off',
// 'unused-javascript': 'off',
// 'uses-http2': 'off',
// },
// },
},
}

0 comments on commit 6bab92a

Please sign in to comment.