diff --git a/doc/netlify.toml b/doc/netlify.toml index 1fcb4bbc..ba383ade 100644 --- a/doc/netlify.toml +++ b/doc/netlify.toml @@ -5,3 +5,18 @@ [build.environment] PYTHON_VERSION = "3.8" HUGO_VERSION = "0.91.2" + +[[plugins]] + package = "@netlify/plugin-lighthouse" + + # optional, fails build when a category is below a threshold + [plugins.inputs.thresholds] + performance = 0.9 + accessibility = 0.9 + best-practices = 0.9 + seo = 0.9 + pwa = 0.9 + + # optional, deploy the lighthouse report to a path under your site + [plugins.inputs] + output_path = "reports/lighthouse.html"