initial version.

feat: automatically run vite dev server when in Debugger mode.
feat: supports hotreload on both js frontend and .net backend.
This commit is contained in:
lchen committed 2026-10-21 14:11:15 +08:00
1 parent f925e00540
commit 5c81ed18b2
25 files changed
+743

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
import { defineConfig } from 'vite';
import path from 'node:path';
export default defineConfig({
server: {
port: 5173,
cors: true,
strictPort: true
},
build: {
outDir: path.resolve(import.meta.dirname, '../wwwroot/dist'),
emptyOutDir: true,
manifest: true,
rollupOptions: {
input: {
main: path.resolve(import.meta.dirname, 'src/main.ts'),
error: path.resolve(import.meta.dirname, 'src/pages/error.ts')
}
}
}
});