lume/vite.config.ts

19 lines
522 B
TypeScript
Raw Normal View History

2023-08-03 07:09:12 +00:00
import react from '@vitejs/plugin-react-swc';
import { defineConfig } from 'vite';
import viteTsconfigPaths from 'vite-tsconfig-paths';
2023-04-22 01:53:18 +00:00
export default defineConfig({
2023-11-05 08:19:51 +00:00
plugins: [react(), viteTsconfigPaths()],
2023-08-03 07:09:12 +00:00
envPrefix: ['VITE_', 'TAURI_'],
build: {
target: process.env.TAURI_PLATFORM === 'windows' ? 'chrome105' : 'safari13',
minify: !process.env.TAURI_DEBUG ? 'esbuild' : false,
sourcemap: !!process.env.TAURI_DEBUG,
},
server: {
strictPort: true,
port: 3000,
},
clearScreen: false,
2023-04-22 01:53:18 +00:00
});