-
-
Notifications
You must be signed in to change notification settings - Fork 64
/
vite.config.js
29 lines (28 loc) · 953 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
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
export default defineConfig(() => {
return {
base: '/311-data/',
build: {
outDir: 'dist',
},
plugins: [react()],
resolve: {
alias: {
'@root': __dirname,
'@data': path.resolve(__dirname, 'data'),
'@theme': path.resolve(__dirname, 'theme'),
'@components': path.resolve(__dirname, 'components'),
'@dashboards': path.resolve(__dirname, 'components/Dashboards'),
'@hooks': path.resolve(__dirname, 'hooks'),
'@reducers': path.resolve(__dirname, 'redux/reducers'),
'@styles': path.resolve(__dirname, 'styles'),
'@assets': path.resolve(__dirname, 'assets'),
'@utils': path.resolve(__dirname, 'utils'),
'@settings': path.resolve(__dirname, 'settings'),
'@db': path.resolve(__dirname, 'components/db'),
},
},
};
});