👷 Add Lighthouse configuration
This commit is contained in:
parent
f726d8eaa3
commit
814c7774bc
15
lighthouserc.js
Normal file
15
lighthouserc.js
Normal file
@ -0,0 +1,15 @@
|
||||
module.exports = {
|
||||
ci: {
|
||||
collect: {
|
||||
startServerCommand: "npm run example -- --disableLiveReload --minify",
|
||||
startServerReadyPattern: "Web Server is available",
|
||||
url: ["http://localhost:8008/lynx/"],
|
||||
settings: {
|
||||
skipAudits: ["uses-text-compression", "uses-long-cache-ttl"],
|
||||
},
|
||||
},
|
||||
upload: {
|
||||
target: "temporary-public-storage",
|
||||
},
|
||||
},
|
||||
};
|
@ -5,7 +5,8 @@
|
||||
"scripts": {
|
||||
"dev": "NODE_ENV=development ./node_modules/tailwindcss/lib/cli.js -i ./assets/css/main.css -o ./assets/css/compiled/main.css --jit -w",
|
||||
"build": "NODE_ENV=production ./node_modules/tailwindcss/lib/cli.js -i ./assets/css/main.css -o ./assets/css/compiled/main.css --jit",
|
||||
"example": "hugo server --source exampleSite --themesDir ../.. --buildDrafts -b http://localhost/lynx/ -p 8008"
|
||||
"example": "hugo server --source exampleSite --themesDir ../.. --buildDrafts -b http://localhost/lynx/ -p 8008",
|
||||
"lighthouse": "lhci autorun"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
Loading…
Reference in New Issue
Block a user