Initial commit: BiliDownloader Web 版:Python 零依赖后端 + shadcn/ui 前端

This commit is contained in:
WpyQwq
2026-09-19 11:49:36 +08:00
commit f42cf11831
41 changed files with 7576 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import tailwindcss from '@tailwindcss/vite';
import path from 'node:path';
// 构建产物交给本地 Node 服务托管(server/index.js 会优先发 ui/dist),
// 所以 base 用相对路径,避免路径耦合。
export default defineConfig({
base: './',
plugins: [react(), tailwindcss()],
resolve: {
alias: { '@': path.resolve(__dirname, './src') },
},
build: {
outDir: 'dist',
emptyOutDir: true,
sourcemap: false,
chunkSizeWarningLimit: 1200,
},
server: {
port: 5174,
// 开发时把 API 代理到本地邮件服务,便于热更新调试
proxy: { '/api': 'http://127.0.0.1:8788' },
},
});