-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
62 lines (61 loc) · 2.06 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import { TanStackRouterVite as router } from '@tanstack/router-plugin/vite'
import react from '@vitejs/plugin-react'
import { resolve } from 'path'
import { defineConfig } from 'vite'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
router({
semicolons: false,
quoteStyle: 'single',
}),
react(),
],
resolve: {
alias: {
'@': resolve('./src'),
},
},
build: {
rollupOptions: {
output: {
manualChunks: {
'react': [
'react',
'react-dom',
],
'fontawesome': [
'@fortawesome/fontawesome-svg-core',
'@fortawesome/free-brands-svg-icons',
'@fortawesome/free-solid-svg-icons',
'@fortawesome/react-fontawesome',
],
'shadcn-ui': [
'@hookform/resolvers',
'@radix-ui/react-alert-dialog',
'@radix-ui/react-dialog',
'@radix-ui/react-icons',
'@radix-ui/react-label',
'@radix-ui/react-menubar',
'@radix-ui/react-popover',
'@radix-ui/react-scroll-area',
'@radix-ui/react-select',
'@radix-ui/react-slot',
'@radix-ui/react-toast',
'@radix-ui/react-tooltip',
'@tanstack/react-query',
'@tanstack/react-router',
'class-variance-authority',
'clsx',
'react-hook-form',
'tailwind-merge',
'tailwindcss-animate',
],
mjml: [
'mjml-browser',
],
},
},
},
},
})