Files
knock/vite.config.ts
JoshiCodes f6484f4dc8 Skeleton, REST core, variables and JSON editor (M0–M2)
- knock-core: YAML collection format with unknown-field round trip,
  variable resolution across scopes with secrets and dynamic values,
  HTTP engine with manual redirects, cookie jar and large-body spill,
  basic/bearer/API key auth with debug output, assertions and extracts
- Tauri app: collection commands, file watcher, SQLite history,
  keyring-backed secrets
- Svelte UI: sidebar tree, tabs, request editor, response viewer,
  JSON form/code editor with schema hints, environments, settings
2026-11-27 16:42:31 +01:00

25 lines
690 B
TypeScript

import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import tailwindcss from '@tailwindcss/vite';
const host = process.env.TAURI_DEV_HOST;
export default defineConfig({
plugins: [tailwindcss(), svelte()],
clearScreen: false,
resolve: { alias: { $lib: '/src/lib' } },
server: {
port: 1420,
strictPort: true,
host: host || false,
hmr: host ? { protocol: 'ws', host, port: 1421 } : undefined,
watch: { ignored: ['**/src-tauri/**', '**/crates/**', '**/target/**'] }
},
build: {
target: 'safari16',
minify: !process.env.TAURI_ENV_DEBUG ? 'oxc' : false,
sourcemap: !!process.env.TAURI_ENV_DEBUG,
chunkSizeWarningLimit: 2000
}
});