Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

vite.config.ts

21 lines486 Bytes

1import { defineConfig } from "vite"
2import { tanstackStart } from "@tanstack/react-start/plugin/vite"
3import viteTsConfigPaths from "vite-tsconfig-paths"
4import tailwindcss from "@tailwindcss/vite"
5​
6const config = defineConfig({
7 plugins: [
8 // this is the plugin that enables path aliases
9 viteTsConfigPaths({
10 projects: [`./tsconfig.json`],
11 }),
12 tailwindcss(),
13 tanstackStart({
14 spa: {
15 enabled: true,
16 },
17 }),
18 ],
19})
20​
21export default config