Skip to content

Commit

Permalink
Create generate-lighthouserc.js
Browse files Browse the repository at this point in the history
Dynamically generate lighthouserc.js config file for lighthouse-ci
  • Loading branch information
cplkake authored Nov 14, 2024
1 parent 114c619 commit 2ebe5c6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions generate-lighthouserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const fs = require('fs');

const config = {
ci: {
collect: {
url: ['http://localhost']
},
upload: {
target: 'temporary-public-storage'
}
}
};

fs.writeFileSync('lighthouserc.js', 'module.exports = ' + JSON.stringify(config, null, 2) + ';');

0 comments on commit 2ebe5c6

Please sign in to comment.