buster/apps/web-tss/vite.config.ts

25 lines
578 B
TypeScript
Raw Normal View History

2025-08-12 11:28:36 +08:00
import tailwindcss from "@tailwindcss/vite";
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
import viteReact from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import viteTsConfigPaths from "vite-tsconfig-paths";
const config = defineConfig({
2025-08-13 00:30:48 +08:00
server: {
port: 3000,
},
2025-08-12 11:28:36 +08:00
plugins: [
// this is the plugin that enables path aliases
viteTsConfigPaths({
projects: ["./tsconfig.json"],
}),
tailwindcss(),
tanstackStart({
customViteReactPlugin: true,
}),
viteReact(),
],
});
export default config;