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

vite.config.ts

16 lines380 Bytes

1import { defineConfig } from 'vite'
2import react from '@vitejs/plugin-react'
3import { tanstackRouter } from '@tanstack/router-plugin/vite'
4import tailwindcss from '@tailwindcss/vite'
5​
6// https://vitejs.dev/config/
7export default defineConfig({
8 plugins: [
9 tailwindcss(),
10 tanstackRouter({
11 target: 'react',
12 autoCodeSplitting: true,
13 }),
14 react(),
15 ],
16})