mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-03-20 02:47:25 +08:00
fix: 取消chunks分割,避免css覆盖问题
This commit is contained in:
@@ -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'
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user