mirror of
https://github.com/gustavosett/Windows-11-Clipboard-History-For-Linux
synced 2026-04-25 17:15:35 +02:00
* feat: move setup wizard to separate window (MPA) with rust backend command * fix: Remove forced GDK_SCALE exports to respect system DPI scaling - Remove GDK_SCALE and GDK_DPI_SCALE forced exports from wrapper.sh These were forcing 1x scaling even on HiDPI displays with 2x scaling - Add setup window closure handler to exit app if wizard not completed - Fix TypeScript error with setInterval return type - Update install.sh wrapper generation to match wrapper.sh changes Fixes scaling issues on HiDPI displays (4K monitors with 2x scaling) * chore: address code review comments * chore: fix lint issues * refactor: merge setup.html into index.html, fix race conditions and improve error handling
38 lines
897 B
TypeScript
38 lines
897 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
|
|
// Tauri expects a fixed port for development
|
|
server: {
|
|
port: 1420,
|
|
strictPort: true,
|
|
watch: {
|
|
// Workaround for WSL on Windows
|
|
usePolling: true,
|
|
},
|
|
},
|
|
|
|
// Clear screen during dev
|
|
clearScreen: false,
|
|
|
|
// Environment variables prefix
|
|
envPrefix: ['VITE_', 'TAURI_'],
|
|
|
|
build: {
|
|
// Tauri uses Chromium on Windows and WebKit on macOS and Linux
|
|
target: process.env.TAURI_PLATFORM === 'windows' ? 'chrome105' : 'safari13',
|
|
// Don't minify for debug builds
|
|
minify: !process.env.TAURI_DEBUG ? 'esbuild' : false,
|
|
// Produce sourcemaps for debug builds
|
|
sourcemap: !!process.env.TAURI_DEBUG,
|
|
rollupOptions: {
|
|
input: {
|
|
main: 'index.html',
|
|
},
|
|
},
|
|
},
|
|
})
|