fix: 取消chunks分割,避免css覆盖问题

This commit is contained in:
Tim
2025-08-27 12:08:50 +08:00
parent 013d47e8e4
commit e819926cf3

View File

@@ -88,24 +88,24 @@ export default defineNuxtConfig({
vite: { vite: {
build: { build: {
// increase warning limit and split large libraries into separate chunks // increase warning limit and split large libraries into separate chunks
chunkSizeWarningLimit: 1024, // chunkSizeWarningLimit: 1024,
rollupOptions: { // rollupOptions: {
output: { // output: {
manualChunks(id) { // manualChunks(id) {
if (id.includes('node_modules')) { // if (id.includes('node_modules')) {
if (id.includes('vditor')) { // if (id.includes('vditor')) {
return 'vditor' // return 'vditor'
} // }
if (id.includes('echarts')) { // if (id.includes('echarts')) {
return 'echarts' // return 'echarts'
} // }
if (id.includes('highlight.js')) { // if (id.includes('highlight.js')) {
return 'highlight' // return 'highlight'
} // }
} // }
}, // },
}, // },
}, // },
}, },
}, },
}) })