mirror of
https://github.com/reconurge/flowsint.git
synced 2026-05-02 12:20:00 -05:00
44 lines
950 B
TypeScript
44 lines
950 B
TypeScript
import { tanstackRouter } from '@tanstack/router-plugin/vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import { defineConfig } from 'vite'
|
|
import { resolve } from 'path'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
tailwindcss(),
|
|
{
|
|
...tanstackRouter({
|
|
target: 'react',
|
|
routesDirectory: 'src/routes',
|
|
generatedRouteTree: 'src/routeTree.gen.ts',
|
|
// routeFileIgnorePrefix: '_',
|
|
autoCodeSplitting: true,
|
|
verboseFileRoutes: false,
|
|
quoteStyle: 'double',
|
|
semicolons: true
|
|
}),
|
|
enforce: 'pre'
|
|
},
|
|
react({
|
|
babel: {
|
|
// plugins: ["babel-plugin-react-compiler"]
|
|
}
|
|
})
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(__dirname, 'src')
|
|
}
|
|
},
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:5001',
|
|
changeOrigin: true,
|
|
secure: false
|
|
}
|
|
}
|
|
}
|
|
})
|