update vite
This commit is contained in:
parent
e8365afb23
commit
4f9a271fe3
@ -195,8 +195,6 @@ $: {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(earningsCalendar)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -12,8 +12,17 @@ const config = {
|
|||||||
target: 'esnext',
|
target: 'esnext',
|
||||||
// Enable minification and other optimizations for production builds
|
// Enable minification and other optimizations for production builds
|
||||||
minify: true,
|
minify: true,
|
||||||
// Enable code splitting to reduce initial loading time
|
rollupOptions: {
|
||||||
chunkSizeWarningLimit: 1500, // Adjust as per your project size
|
output: {
|
||||||
|
manualChunks: (id) => {
|
||||||
|
if (id.includes('node_modules')) {
|
||||||
|
return 'vendor';
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
// Enable tree shaking
|
||||||
|
treeshake: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user