* wip: updating settings layout * most issues resolved * settings layout revamped * fix:multiple unrequired toast on formatter settings resolved * feat: updated ai-models tabs to extract common components and logic * chore: formatting fix * chore: code cleanup * fix: forward navigation handling * fix: model selections ux * fix: vocabulary update flow * chore: update lang list * chore: cleanup migrations * fix: invalid drag class on back buttont * chore: swap to tanstack router * fix: history navigation * chore: clean up + models unification * chore: cleanup migrations * refactor: settings deep merges --------- Co-authored-by: amadeus-x1 <45001978+amadeus-x1@users.noreply.github.com>
27 lines
690 B
TypeScript
27 lines
690 B
TypeScript
import { defineConfig } from "vite";
|
|
import { resolve } from "path";
|
|
import { TanStackRouterVite } from "@tanstack/router-vite-plugin";
|
|
// https://vitejs.dev/config
|
|
export default defineConfig(async () => {
|
|
// @ts-ignore
|
|
const { default: tailwindcss } = await import("@tailwindcss/vite");
|
|
|
|
return {
|
|
plugins: [
|
|
TanStackRouterVite({
|
|
routesDirectory: "./src/renderer/main/routes",
|
|
generatedRouteTree: "./src/renderer/main/routeTree.gen.ts",
|
|
}),
|
|
tailwindcss(),
|
|
],
|
|
publicDir: "public",
|
|
resolve: {
|
|
alias: {
|
|
"@": resolve(__dirname, "src"),
|
|
},
|
|
},
|
|
optimizeDeps: {
|
|
exclude: ["better-sqlite3"],
|
|
},
|
|
};
|
|
});
|