-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
28 lines (26 loc) · 832 Bytes
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import path from 'path';
import { TanStackRouterVite } from '@tanstack/router-vite-plugin';
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
// https://vitejs.dev/config/
export default defineConfig({
// css: {
// modules: {
// generateScopedName: () => {
// if (process.env.NODE_ENV === 'production') {
// // Use a custom hashing function or any strategy you prefer
// // This is a very simplistic approach for demonstration
// return 'style--[hash:base64:5]';
// }
// // For development, use a more descriptive name
// return `[name]__[local]___[hash:base64:5]`;
// },
// },
// },
plugins: [react(), TanStackRouterVite()],
resolve: {
alias: {
src: path.resolve(__dirname, './src'),
},
},
});