initial commit

This commit is contained in:
2025-05-03 23:27:36 +01:00
commit 6840fe515d
25 changed files with 1353 additions and 0 deletions

57
vite.config.ts Normal file
View File

@@ -0,0 +1,57 @@
import { VitePWA } from "vite-plugin-pwa";
import { defineConfig } from "vite";
import path from "path";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
import { TanStackRouterVite } from "@tanstack/router-plugin/vite";
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
"~": path.resolve(__dirname, "./src"),
},
},
plugins: [
TanStackRouterVite({
target: "react",
autoCodeSplitting: false,
routesDirectory: "./src/app",
generatedRouteTree: "./src/app/-route-tree.gen.ts",
routeFileIgnorePrefix: "-",
quoteStyle: "double",
}),
react(),
VitePWA({
registerType: "prompt",
injectRegister: false,
pwaAssets: {
disabled: false,
config: true,
},
manifest: {
name: "MarkOne",
short_name: "MarkOne",
description: "A minimal bookmark manager",
theme_color: "#ffffff",
},
workbox: {
globPatterns: ["**/*.{js,css,html,svg,png,ico}"],
cleanupOutdatedCaches: true,
clientsClaim: true,
},
devOptions: {
enabled: false,
navigateFallback: "index.html",
suppressWarnings: true,
type: "module",
},
}),
tailwindcss(),
],
});