lume/vite.config.ts

24 lines
638 B
TypeScript
Raw Normal View History

2023-08-03 07:09:12 +00:00
import react from '@vitejs/plugin-react-swc';
2023-10-30 09:29:49 +00:00
import million from 'million/compiler';
2023-08-03 07:09:12 +00:00
import { defineConfig } from 'vite';
import viteTsconfigPaths from 'vite-tsconfig-paths';
2023-04-22 01:53:18 +00:00
export default defineConfig({
2023-10-30 09:29:49 +00:00
plugins: [
million.vite({ optimize: false, auto: true, mute: true }),
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
});