chore: initial commit

This commit is contained in:
hailin
2026-05-18 13:52:47 +08:00
commit 0753129afe
148 changed files with 14202 additions and 0 deletions

32
vite.config.ts Normal file
View File

@@ -0,0 +1,32 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { viteSingleFile } from "vite-plugin-singlefile"
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), viteSingleFile()],
base: './',
server: {
host: '0.0.0.0',
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:3002',
changeOrigin: true,
secure: false,
}
}
},
build: {
assetsInlineLimit: 0, // 强制所有图片不转 base64直接走文件路径提高 html2canvas 稳定性
chunkSizeWarningLimit: 100000000,
cssCodeSplit: false,
assetsDir: 'assets',
rollupOptions: {
output: {
inlineDynamicImports: true,
manualChunks: undefined,
},
},
},
})