Try out the netlify lighthouse plugin

This commit is contained in:
Zach Leatherman committed 2023-01-24 10:25:29 -06:00
1 parent b535fc067a
commit 97c4675317
2 files changed
+14

No files matched your search

+13
View File
@@ -1,3 +1,16 @@
[build]
publish = "_site"
command = "npm run build"
[[plugins]]
package = "@netlify/plugin-lighthouse"
# optional, fails build when a category is below a threshold
[plugins.inputs.thresholds]
performance = 1.0
accessibility = 1.0
best-practices = 1.0
seo = 1.0
[plugins.inputs]
output_path = "reports/lighthouse/index.html"