GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — simprint/vite.config.ts at main · Simprint/simprint Expand file tree/ Copy pathvite.config.tsMore file actions 51 lines (49 loc) · 1.4 KB / Copy pathvite.config.tsFile metadata and controls51 lines (49 loc) · 1.4 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import path from 'path'; import tailwindcss from '@tailwindcss/vite'; const host = process.env.TAURI_DEV_HOST; // https://vite.dev/config/ export default defineConfig({ server: { fs: { // Allow access to plugin directory allow: ['..', '../..', '../../..'], }, strictPort: true, host: host || false, hmr: host ? { protocol: 'ws', host, port: 5173, } : undefined, watch: { // 3. tell Vite to ignore watching `src-tauri` ignored: ['**/src-tauri/**'], }, }, plugins: [react(), tailwindcss()], resolve: { alias: { '@': path.resolve(__dirname, './src'), '@/plugins': path.resolve(__dirname, './plugins'), }, }, build: { // Tauri uses Chromium on Windows and WebKit on macOS and Linux target: process.env.TAURI_ENV_PLATFORM == 'windows' ? 'chrome105' : 'safari13', // don't minify for debug builds minify: !process.env.TAURI_ENV_DEBUG ? 'esbuild' : false, // produce sourcemaps for debug builds sourcemap: !!process.env.TAURI_ENV_DEBUG, // 多入口配置:主应用、同步器 rollupOptions: { input: { main: path.resolve(__dirname, 'index.html'), syncer: path.resolve(__dirname, 'syncer.html'), }, }, }, }); |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |