-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
32 lines (31 loc) · 1.36 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
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import viteTsconfigPaths from 'vite-tsconfig-paths';
import path from 'path';
import svgr from 'vite-plugin-svgr';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), viteTsconfigPaths(), svgr()],
resolve: {
alias: {
Components: path.resolve(__dirname, './src/components/'),
Services: path.resolve(__dirname, './src/services/'),
Constants: path.resolve(__dirname, './src/constants/'),
Interfaces: path.resolve(__dirname, './src/interfaces/'),
ApiHooks: path.resolve(__dirname, './src/apiHooks/'),
Utils: path.resolve(__dirname, './src/utils/'),
Styles: path.resolve(__dirname, './src/styles/'),
Assets: path.resolve(__dirname, './assets/'),
Shared: path.resolve(__dirname, './src/shared/'),
Pages: path.resolve(__dirname, './src/pages/'),
OD: path.resolve(__dirname, './src/outerDeclarations/'),
Providers: path.resolve(__dirname, './src/providers/'),
Canisters: path.resolve(__dirname, './src/canisters/'),
ABIs: path.resolve(__dirname, './src/ABIs/'),
Stores: path.resolve(__dirname, './src/stores/'),
SVGIcons: path.resolve(__dirname, './src/SVGIcons/'),
Hooks: path.resolve(__dirname, './src/hooks/'),
Types: path.resolve(__dirname, './src/types/'),
},
},
});