This commit is contained in:
2026-01-01 15:31:00 +08:00
parent 73ebd02cdb
commit b39b9c972b
5 changed files with 11343 additions and 14722 deletions

View File

@@ -1,2 +1,9 @@
[install] [install]
registry = "https://registry.npmmirror.com/" registry = "https://registry.npmmirror.com/"
[build]
minify = true
root = "."
entrypoints = ["./app/app.vue"]
[env]
NODE_OPTIONS = "--max-old-space-size=4096"

View File

@@ -39,6 +39,19 @@ export default defineNuxtConfig({
vite: { vite: {
plugins: [tailwindcss()], plugins: [tailwindcss()],
build: {
sourcemap: false,
chunkSizeWarningLimit: 1000,
rollupOptions: {
output: {
manualChunks: {
vendor: ["vue", "vue-router", "@nuxt/content"],
ui: ["@nuxt/ui", "@nuxt/icon"],
utils: ["fuse.js"],
},
},
},
},
}, },
app: { app: {
@@ -88,8 +101,10 @@ export default defineNuxtConfig({
nitro: { nitro: {
prerender: { prerender: {
crawlLinks: true, crawlLinks: true,
routes: ["/", "/rss.xml"], routes: ["/", "/rss.xml", "/sitemap.xml"],
ignore: ["/404"],
}, },
minify: true,
}, },
// fonts: {}, // fonts: {},

View File

@@ -8,9 +8,9 @@
"private": true, "private": true,
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"build": "nuxt build", "build": "NODE_OPTIONS=--max-old-space-size=4096 nuxt build",
"dev": "nuxt dev", "dev": "nuxt dev",
"generate": "nuxt generate", "generate": "NODE_OPTIONS=--max-old-space-size=4096 nuxt generate",
"preview": "nuxt preview", "preview": "nuxt preview",
"postinstall": "nuxt prepare", "postinstall": "nuxt prepare",
"lint": "eslint .", "lint": "eslint .",

14719
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

11318
yarn.lock Normal file

File diff suppressed because it is too large Load Diff