feat: add reward code

This commit is contained in:
2025-12-22 17:37:41 +08:00
commit 1226bbe724
34 changed files with 8857 additions and 0 deletions

26
vite.config.ts Normal file
View 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'],
},
},
},
},
});