- Tauri v2 desktop app with React, TypeScript, Tailwind CSS v4 - Contenteditable editor with [[wikilink]] token chips (compact pills, unwrap on backspace/delete) - Wikilink autocomplete: type [[ to search and link notes - Force-directed graph view with semantic zoom (circle→card morph) - Single-click zooms into node, double-click opens note - shadcn-inspired design system: zinc neutrals, purple accents, gradient buttons - Sidebar with search, file tree, active indicators, daily note shortcut - Backlinks panel showing linked mentions with context - File-based vault stored in local filesystem via Tauri FS plugin
31 lines
642 B
TypeScript
31 lines
642 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import path from "path";
|
|
|
|
const host = process.env.TAURI_DEV_HOST;
|
|
|
|
export default defineConfig(async () => ({
|
|
plugins: [react(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
clearScreen: false,
|
|
server: {
|
|
port: 1420,
|
|
strictPort: true,
|
|
host: host || false,
|
|
hmr: host
|
|
? {
|
|
protocol: "ws",
|
|
host,
|
|
port: 1421,
|
|
}
|
|
: undefined,
|
|
watch: {
|
|
ignored: ["**/src-tauri/**", "**/vault/**"],
|
|
},
|
|
},
|
|
}));
|