mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-11-21 01:21:54 +08:00
feat(frontend): add unlighthouse for generating lighthouse reports
This commit is contained in:
parent
08544afd79
commit
4f92020a44
1
frontend/.gitignore
vendored
1
frontend/.gitignore
vendored
@ -8,3 +8,4 @@ node_modules
|
||||
src/server/middleware/@proxy/proxy.ts
|
||||
.output
|
||||
tsconfig.tsbuildinfo
|
||||
.unlighthouse
|
||||
|
@ -30,6 +30,7 @@ export default defineNuxtConfig({
|
||||
"@pinia/nuxt",
|
||||
"@nuxt-alt/proxy",
|
||||
"unplugin-icons/nuxt",
|
||||
"@unlighthouse/nuxt",
|
||||
[
|
||||
"./src/module/backendData",
|
||||
{
|
||||
|
@ -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",
|
||||
|
15
frontend/unlighthouse.config.ts
Normal file
15
frontend/unlighthouse.config.ts
Normal 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,
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue
Block a user