feat(frontend): add unlighthouse for generating lighthouse reports

This commit is contained in:
MiniDigger | Martin 2023-01-08 19:18:21 +01:00
parent 08544afd79
commit 4f92020a44
4 changed files with 20 additions and 1 deletions

1
frontend/.gitignore vendored
View File

@ -8,3 +8,4 @@ node_modules
src/server/middleware/@proxy/proxy.ts
.output
tsconfig.tsbuildinfo
.unlighthouse

View File

@ -30,6 +30,7 @@ export default defineNuxtConfig({
"@pinia/nuxt",
"@nuxt-alt/proxy",
"unplugin-icons/nuxt",
"@unlighthouse/nuxt",
[
"./src/module/backendData",
{

View File

@ -57,7 +57,7 @@
"devDependencies": {
"@iconify-json/mdi": "1.1.39",
"@intlify/vite-plugin-vue-i18n": "6.0.3",
"@nuxtjs-alt/proxy": "2.1.2",
"@nuxt-alt/proxy": "2.1.3",
"@nuxtjs/eslint-config-typescript": "^12.0.0",
"@types/accept-language-parser": "1.5.3",
"@types/chartist": "0.11.1",
@ -71,6 +71,7 @@
"@types/prismjs": "^1.26.0",
"@types/qs": "6.9.7",
"@types/swagger-ui-dist": "3.30.1",
"@unlighthouse/nuxt": "^0.4.7",
"@vue/compiler-sfc": "3.2.45",
"@vue/eslint-config-typescript": "11.0.2",
"eslint": "8.30.0",
@ -86,6 +87,7 @@
"nuxt-windicss": "2.6.0",
"pnpm": "7.20.0",
"prettier": "2.8.1",
"puppeteer": "^19.4.1",
"regenerator-runtime": "0.13.11",
"sass": "1.57.1",
"typescript": "4.9.4",

View File

@ -0,0 +1,15 @@
export default {
site: "hangar.papermc.io",
scanner: {
sitemap: false,
exclude: ["/admin/*"],
device: "desktop",
},
discovery: {
pagesDir: "./src/pages",
},
server: {
showURL: true,
open: false,
},
};