2023-03-03 23:17:11 +01:00
|
|
|
import { defineConfig } from 'vite';
|
|
|
|
import react from '@vitejs/plugin-react-swc';
|
2023-03-03 06:25:10 +01:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [react()],
|
2023-03-03 23:17:11 +01:00
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'@icon/': new URL('./src/assets/icons/', import.meta.url).pathname,
|
|
|
|
'@type/': new URL('./src/types/', import.meta.url).pathname,
|
|
|
|
'@store/': new URL('./src/store/', import.meta.url).pathname,
|
|
|
|
'@hooks/': new URL('./src/hooks/', import.meta.url).pathname,
|
|
|
|
'@constants/': new URL('./src/constants/', import.meta.url).pathname,
|
|
|
|
'@api/': new URL('./src/api/', import.meta.url).pathname,
|
2023-03-04 13:23:27 +01:00
|
|
|
'@components/': new URL('./src/components/', import.meta.url).pathname,
|
2023-03-06 15:50:03 +01:00
|
|
|
'@utils/': new URL('./src/utils/', import.meta.url).pathname,
|
2023-03-11 18:40:26 +01:00
|
|
|
'@src/': new URL('./src/', import.meta.url).pathname,
|
2023-03-03 23:17:11 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|