UNPKG

biba-ui

Version:

A collection of stunning, production-ready React components with smooth animations

49 lines (46 loc) 1.22 kB
import path from 'path'; import { defineConfig, loadEnv } from 'vite'; import react from '@vitejs/plugin-react'; export default defineConfig(({ mode }) => { const env = loadEnv(mode, '.', ''); return { server: { port: 3000, host: '0.0.0.0', }, plugins: [react()], define: { 'process.env.API_KEY': JSON.stringify(env.GEMINI_API_KEY), 'process.env.GEMINI_API_KEY': JSON.stringify(env.GEMINI_API_KEY) }, resolve: { alias: { '@': path.resolve(__dirname, '.'), } }, build: { outDir: 'dist', sourcemap: mode === 'development', minify: 'terser', terserOptions: { compress: { drop_console: mode === 'production', drop_debugger: mode === 'production', }, }, rollupOptions: { output: { manualChunks: { 'react-vendor': ['react', 'react-dom'], 'animation-vendor': ['framer-motion'], 'ui-vendor': ['lucide-react', 'clsx', 'tailwind-merge'], }, }, }, chunkSizeWarningLimit: 1000, }, optimizeDeps: { include: ['react', 'react-dom', 'framer-motion', 'lucide-react'], }, }; });