feat: add reward code
This commit is contained in:
26
vite.config.ts
Normal file
26
vite.config.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
optimizeDeps: {
|
||||
exclude: ['lucide-react'],
|
||||
},
|
||||
build: {
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks: {
|
||||
// React 核心
|
||||
'vendor-react': ['react', 'react-dom'],
|
||||
// Markdown 相关
|
||||
'vendor-markdown': ['react-markdown', 'remark-math', 'rehype-katex'],
|
||||
// KaTeX 单独分离(体积最大)
|
||||
'vendor-katex': ['katex'],
|
||||
// Supabase
|
||||
'vendor-supabase': ['@supabase/supabase-js'],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user