mirror of
https://github.com/JoshiCodes/knock.git
synced 2026-12-04 15:29:40 +01:00
- 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
25 lines
690 B
TypeScript
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
|
|
}
|
|
});
|