mirror of
https://github.com/RhenCloud/Cloud-Home.git
synced 2026-01-22 17:39:07 +08:00
chore: 更新 Nuxt 配置以禁用 sourcemap 并调整 chunk 大小警告限制
This commit is contained in:
@@ -19,6 +19,16 @@ export default defineNuxtConfig({
|
|||||||
|
|
||||||
vite: {
|
vite: {
|
||||||
plugins: [tailwindcss()],
|
plugins: [tailwindcss()],
|
||||||
|
build: {
|
||||||
|
sourcemap: false,
|
||||||
|
chunkSizeWarningLimit: 1000,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
postcss: {
|
||||||
|
plugins: {
|
||||||
|
"@tailwindcss/postcss": {},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
routeRules: {
|
routeRules: {
|
||||||
@@ -59,6 +69,9 @@ export default defineNuxtConfig({
|
|||||||
// routes: ["/sitemap.xml", "/rss.xml"],
|
// routes: ["/sitemap.xml", "/rss.xml"],
|
||||||
},
|
},
|
||||||
minify: true,
|
minify: true,
|
||||||
|
externals: {
|
||||||
|
inline: ["unhead"],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
runtimeConfig: {
|
runtimeConfig: {
|
||||||
|
|||||||
Reference in New Issue
Block a user