mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-08-14 21:00:37 +03:00
parent
12fb56e901
commit
d9fbb57fc6
|
@ -6,22 +6,5 @@ export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
server: {
|
server: {
|
||||||
port: 3000
|
port: 3000
|
||||||
},
|
|
||||||
build: {
|
|
||||||
chunkSizeWarningLimit: 1024, // KB
|
|
||||||
rollupOptions: {
|
|
||||||
output: {
|
|
||||||
manualChunks:
|
|
||||||
(id) => {
|
|
||||||
if (id.includes('@codemirror') || id.includes('@uiw') || id.includes('@lezer/lr')) return 'parsing';
|
|
||||||
if (id.includes('reagraph') || id.includes('graphology')) return 'graph';
|
|
||||||
if (id.includes('react-data-table-component')) return 'data-table';
|
|
||||||
if (id.includes('@react-three')) return 'react-three';
|
|
||||||
if (id.includes('three') || id.includes('camera')) return 'graphics';
|
|
||||||
if (id.includes('node_modules')) return 'imports';
|
|
||||||
return 'index';
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user