25 lines
448 B
TypeScript
25 lines
448 B
TypeScript
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',
|
|
},
|
|
})
|