22 lines
360 B
TypeScript
22 lines
360 B
TypeScript
import react from '@vitejs/plugin-react'
|
|
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
minify: false,
|
|
sourcemap: false,
|
|
target: 'es2022',
|
|
},
|
|
optimizeDeps: {
|
|
esbuildOptions: {
|
|
target: 'es2022',
|
|
},
|
|
},
|
|
plugins: [react()],
|
|
publicDir: 'assets',
|
|
server: {
|
|
host: true,
|
|
open: true,
|
|
},
|
|
})
|