2026-07-29 13:47:45 +00:00
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
|
import path from 'path'
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [react(), tailwindcss()],
|
|
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
'@': path.resolve(__dirname, './src'),
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
// Tauri compatibility
|
|
|
|
|
clearScreen: false,
|
|
|
|
|
server: {
|
|
|
|
|
port: 1420,
|
|
|
|
|
strictPort: true,
|
|
|
|
|
},
|
|
|
|
|
envPrefix: ['VITE_', 'TAURI_'],
|
|
|
|
|
build: {
|
2026-07-29 19:35:37 +00:00
|
|
|
target: 'es2022',
|
2026-07-29 13:47:45 +00:00
|
|
|
minify: !process.env.TAURI_DEBUG ? 'esbuild' : false,
|
|
|
|
|
sourcemap: !!process.env.TAURI_DEBUG,
|
|
|
|
|
},
|
|
|
|
|
})
|