gitscope
← marzneshin / v0.3.0-alpha7 / dashboard/vite.config.ts
https://dev.kronoz.win/r/marzneshin.git
dashboard/vite.config.ts · TypeScript
Blame Raw
 1import { defineConfig } from 'vite'
 2import react from '@vitejs/plugin-react-swc'
 3import { TanStackRouterVite } from '@tanstack/router-vite-plugin';
 4import tsconfigPaths from 'vite-tsconfig-paths';
 5import path from 'path';
 6
 7// https://vitejs.dev/config/
 8export default defineConfig({
 9    plugins: [
10        TanStackRouterVite(),
11        tsconfigPaths(),
12        react()
13    ],
14    root: '.',
15    build: {
16        assetsDir: 'static',
17        outDir: 'dist'
18    },
19    resolve: {
20        alias: [
21            {
22                find: '@marzneshin',
23                replacement: path.resolve(__dirname, './src/'),
24            },
25        ],
26    },
27})