feat: setup libs
Some checks failed
Deploy to VPS (dist) / deploy (push) Has been cancelled

Co-authored-by: Hewston Fox <hewstonfox@gmail.com>
Co-authored-by: autofix <noreply@autofix.ci>
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
2026-03-08 23:30:37 +00:00
parent 06129b821e
commit 74cb37942e
24 changed files with 2527 additions and 1061 deletions

View File

@@ -1,7 +1,35 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import tailwindcss from "@tailwindcss/vite";
import tanstackRouter from "@tanstack/router-plugin/vite";
import { devtools as tanstackDevtools } from "@tanstack/devtools-vite";
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
})
plugins: [
tanstackDevtools({
removeDevtoolsOnBuild: true,
logging: true,
injectSource: {
enabled: true,
},
editor: {
name: "WebStorm",
open: async (path, lineNumber, columnNumber) => {
const { exec } = await import("node:child_process");
exec(
`webstorm -g "${path.replaceAll("$", "\\$")}${lineNumber ? `:${lineNumber}` : ""}${columnNumber ? `:${columnNumber}` : ""}"`,
);
},
},
enhancedLogs: {
enabled: true,
},
}),
tanstackRouter({
target: "react",
autoCodeSplitting: true,
}),
react(),
tailwindcss(),
],
});