-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
27 lines (26 loc) · 899 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
import { defineConfig } from 'vite'
import solidPlugin from 'vite-plugin-solid'
import path from 'path'
export default defineConfig({
plugins: [solidPlugin()],
build: {
target: 'esnext',
},
resolve: {
alias: {
'@abis': path.resolve(__dirname, './src/abis'),
'@pages': path.resolve(__dirname, './src/pages'),
'@components': path.resolve(__dirname, './src/components'),
'@config': path.resolve(__dirname, './src/config'),
'@hooks': path.resolve(__dirname, './src/hooks'),
'@api': path.resolve(__dirname, './src/api'),
'@styles': path.resolve(__dirname, './src/styles'),
'@layouts': path.resolve(__dirname, './src/layouts'),
'@helpers': path.resolve(__dirname, './src/helpers'),
'tailwind.config.js': path.resolve(__dirname, './tailwind.config.js'),
},
},
optimizeDeps: {
include: ['tailwind.config.js'],
},
})