From 9c112d3b6cc57f80ff2ca8e6ba9712fbd977a52f Mon Sep 17 00:00:00 2001 From: Arnelle Balane Date: Sun, 24 Sep 2023 03:16:24 -0700 Subject: [PATCH] Update LighthouseCI config and add CSP meta tags --- .lighthouserc.json | 27 +++++++++++++++++++++++++++ .lighthouserc.yml | 15 --------------- index.html | 4 ++++ public/privacy-policy.html | 4 ++++ 4 files changed, 35 insertions(+), 15 deletions(-) create mode 100644 .lighthouserc.json delete mode 100644 .lighthouserc.yml diff --git a/.lighthouserc.json b/.lighthouserc.json new file mode 100644 index 0000000..f1004eb --- /dev/null +++ b/.lighthouserc.json @@ -0,0 +1,27 @@ +{ + "ci": { + "collect": { + "staticDistDir": "dist", + "numberOfRuns": 3, + "settings": { + "preset": "desktop" + } + }, + + "assert": { + "preset": "lighthouse:no-pwa", + "assertions": { + "bf-cache": "off", + "csp-xss": "warn", + "errors-in-console": "warn", + "unused-javascript": "warn", + "non-composited-animations": "off" + } + }, + + "upload": { + "target": "lhci", + "serverBaseUrl": "https://lhci.arnelle.dev/" + } + } +} diff --git a/.lighthouserc.yml b/.lighthouserc.yml deleted file mode 100644 index 97c8229..0000000 --- a/.lighthouserc.yml +++ /dev/null @@ -1,15 +0,0 @@ -ci: - collect: - staticDistDir: dist - numberOfRuns: 3 - settings: - preset: desktop - - assert: - preset: lighthouse:no-pwa - assertions: - non-composited-animations: off - - upload: - target: lhci - serverBaseUrl: https://lhci.arnelle.dev/ diff --git a/index.html b/index.html index c747ebb..daff36b 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,10 @@ + Simple Todo diff --git a/public/privacy-policy.html b/public/privacy-policy.html index 7b53dd1..ec3336f 100644 --- a/public/privacy-policy.html +++ b/public/privacy-policy.html @@ -3,6 +3,10 @@ +