24 lines
622 B
TypeScript
24 lines
622 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import { TanStackRouterVite } from '@tanstack/router-vite-plugin';
|
|
import path from 'path';
|
|
|
|
// https://vitejs.dev/config
|
|
export default defineConfig({
|
|
plugins: [
|
|
tailwindcss(),
|
|
react(),
|
|
TanStackRouterVite({
|
|
routesDirectory: './src/renderer/routes',
|
|
generatedRouteTree: './src/renderer/routeTree.gen.ts',
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src/renderer'),
|
|
'@shared': path.resolve(__dirname, './src/shared'),
|
|
},
|
|
},
|
|
});
|