This commit is contained in:
2025-12-13 14:46:33 +08:00
parent 7f768c66c9
commit 2d99ce0d91

24
vite.config.family.ts Normal file
View File

@@ -0,0 +1,24 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
build: {
outDir: 'dist/family',
rollupOptions: {
input: {
main: path.resolve(__dirname, 'family.html'),
},
},
},
server: {
port: 3001,
open: '/family.html',
},
})