-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathvite.config.js
36 lines (34 loc) · 961 Bytes
/
vite.config.js
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
import { defineConfig } from 'vite';
import path from 'path';
import react from '@vitejs/plugin-react';
import svgr from 'vite-plugin-svgr';
export default defineConfig({
define: {
},
server: {
port: 8500
},
envPrefix: 'SWITCHBLADE_',
build: {
outDir: 'build',
target: 'es2017',
assetsDir: 'public'
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'components': path.resolve(__dirname, './src/components'),
'constants': path.resolve(__dirname, './src/constants'),
'icons': path.resolve(__dirname, './src/icons'),
'lib': path.resolve(__dirname, './src/lib'),
'pages': path.resolve(__dirname, './src/pages'),
'router': path.resolve(__dirname, './src/router'),
'state': path.resolve(__dirname, './src/state'),
'styles': path.resolve(__dirname, './src/styles')
},
},
plugins: [react(), svgr()],
optimizeDeps: {
exclude: ['switchblade-sdk']
}
})