mirror of
https://github.com/JoshiCodes/knock.git
synced 2026-12-04 15:09:41 +01:00
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
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user