diff --git a/netlify.toml b/netlify.toml index c03bf48b..f2889b1c 100644 --- a/netlify.toml +++ b/netlify.toml @@ -4,3 +4,18 @@ [[plugins]] package = "netlify-plugin-checklinks" + +[[plugins]] + package = "@netlify/plugin-lighthouse" + + # optional, fails build when a category is below a threshold + [plugins.inputs.thresholds] + performance = 0.75 + accessibility = 0.95 + best-practices = 0.95 + seo = 0.95 + pwa = 0.2 + + # optional, deploy the lighthouse report to a path under your site + [plugins.inputs] + output_path = "reports/lighthouse.html"