mirror of
https://github.com/RhenCloud/Cloud-Home.git
synced 2026-01-22 17:39:07 +08:00
Compare commits
4 Commits
20eebcca4f
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| d5c9b4d3c8 | |||
| ab58d2e251 | |||
| cb1406661a | |||
| 8a2bbacaa3 |
@@ -1,24 +1,5 @@
|
|||||||
@import "tailwindcss";
|
@import "tailwindcss";
|
||||||
|
|
||||||
/* Font Awesome 字体优化 */
|
|
||||||
@font-face {
|
|
||||||
font-family: "Font Awesome 6 Solid";
|
|
||||||
src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-solid-900.woff2")
|
|
||||||
format("woff2");
|
|
||||||
font-display: swap;
|
|
||||||
font-weight: 400;
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: "Font Awesome 6 Brands";
|
|
||||||
src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-brands-400.woff2")
|
|
||||||
format("woff2");
|
|
||||||
font-display: swap;
|
|
||||||
font-weight: 400;
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
@layer base {
|
@layer base {
|
||||||
html {
|
html {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
1
bun.lock
1
bun.lock
@@ -10,6 +10,7 @@
|
|||||||
"@nuxt/icon": "^2.2.0",
|
"@nuxt/icon": "^2.2.0",
|
||||||
"@nuxt/image": "2.0.0",
|
"@nuxt/image": "2.0.0",
|
||||||
"@nuxtjs/icon": "^2.6.0",
|
"@nuxtjs/icon": "^2.6.0",
|
||||||
|
"@nuxtjs/robots": "^5.6.7",
|
||||||
"@nuxtjs/seo": "3.3.0",
|
"@nuxtjs/seo": "3.3.0",
|
||||||
"@nuxtjs/sitemap": "^7.5.2",
|
"@nuxtjs/sitemap": "^7.5.2",
|
||||||
"nodemailer": "^7.0.12",
|
"nodemailer": "^7.0.12",
|
||||||
|
|||||||
@@ -4,8 +4,16 @@ import tailwindcss from "@tailwindcss/vite";
|
|||||||
|
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
compatibilityDate: "2025-12-12",
|
compatibilityDate: "2025-12-12",
|
||||||
srcDir: "app/",
|
srcDir: "app",
|
||||||
modules: ["@nuxt/image", "@nuxt/eslint", "@nuxtjs/sitemap", "@nuxt/icon", "@nuxtjs/seo"],
|
|
||||||
|
modules: [
|
||||||
|
"@nuxt/image",
|
||||||
|
"@nuxt/eslint",
|
||||||
|
"@nuxtjs/robots",
|
||||||
|
"@nuxtjs/sitemap",
|
||||||
|
"@nuxt/icon",
|
||||||
|
"@nuxtjs/seo",
|
||||||
|
],
|
||||||
|
|
||||||
// 禁用 Vue Router 的非关键警告
|
// 禁用 Vue Router 的非关键警告
|
||||||
vue: {
|
vue: {
|
||||||
@@ -19,6 +27,16 @@ export default defineNuxtConfig({
|
|||||||
|
|
||||||
vite: {
|
vite: {
|
||||||
plugins: [tailwindcss()],
|
plugins: [tailwindcss()],
|
||||||
|
build: {
|
||||||
|
sourcemap: false,
|
||||||
|
chunkSizeWarningLimit: 1000,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
postcss: {
|
||||||
|
plugins: {
|
||||||
|
"@tailwindcss/postcss": {},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
routeRules: {
|
routeRules: {
|
||||||
@@ -29,6 +47,12 @@ export default defineNuxtConfig({
|
|||||||
"/friends": { prerender: true },
|
"/friends": { prerender: true },
|
||||||
},
|
},
|
||||||
|
|
||||||
|
robots: { groups: [{ userAgent: ["GPTBot", "ChatGPT-User"], disallow: ["/"] }] },
|
||||||
|
|
||||||
|
sitemap: {
|
||||||
|
zeroRuntime: true,
|
||||||
|
},
|
||||||
|
|
||||||
app: {
|
app: {
|
||||||
head: {
|
head: {
|
||||||
charset: "utf-8",
|
charset: "utf-8",
|
||||||
@@ -59,6 +83,16 @@ export default defineNuxtConfig({
|
|||||||
// routes: ["/sitemap.xml", "/rss.xml"],
|
// routes: ["/sitemap.xml", "/rss.xml"],
|
||||||
},
|
},
|
||||||
minify: true,
|
minify: true,
|
||||||
|
externals: {
|
||||||
|
inline: ["unhead"],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
site: {
|
||||||
|
url: siteConfig.siteMeta.url,
|
||||||
|
name: siteConfig.siteMeta.title,
|
||||||
|
description: siteConfig.siteMeta.description,
|
||||||
|
author: siteConfig.siteMeta.author,
|
||||||
},
|
},
|
||||||
|
|
||||||
runtimeConfig: {
|
runtimeConfig: {
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
"@nuxt/icon": "^2.2.0",
|
"@nuxt/icon": "^2.2.0",
|
||||||
"@nuxt/image": "2.0.0",
|
"@nuxt/image": "2.0.0",
|
||||||
"@nuxtjs/icon": "^2.6.0",
|
"@nuxtjs/icon": "^2.6.0",
|
||||||
|
"@nuxtjs/robots": "^5.6.7",
|
||||||
"@nuxtjs/seo": "3.3.0",
|
"@nuxtjs/seo": "3.3.0",
|
||||||
"@nuxtjs/sitemap": "^7.5.2",
|
"@nuxtjs/sitemap": "^7.5.2",
|
||||||
"nodemailer": "^7.0.12",
|
"nodemailer": "^7.0.12",
|
||||||
|
|||||||
Reference in New Issue
Block a user