-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
39 lines (37 loc) · 960 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
29
30
31
32
33
34
35
36
37
38
39
import path from 'path'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
export default defineConfig({
define: {
'process.env': process.env,
},
resolve: {
alias: {
components: path.resolve(__dirname, 'src/components'),
'config.client': path.resolve(__dirname, 'src/config.client'),
'config.server': path.resolve(__dirname, 'src/config.server'),
lib: path.resolve(__dirname, 'src/lib'),
pages: path.resolve(__dirname, 'src/pages'),
states: path.resolve(__dirname, 'src/states'),
styles: path.resolve(__dirname, 'src/styles'),
types: path.resolve(__dirname, 'src/types'),
validation: path.resolve(__dirname, 'src/validation'),
},
},
publicDir: 'public',
plugins: [
react({
jsxImportSource: '@emotion/react',
babel: {
plugins: ['@emotion'],
},
}),
],
esbuild: {
logOverride: { 'this-is-undefined-in-esm': 'silent' },
},
base: '/ladle/',
server: {
open: 'none',
},
})