mirror of
https://github.com/DerTyp7/dertyp7.github.io.git
synced 2025-10-29 04:42:08 +01:00
initialize react project
This commit is contained in:
19
vite.config.ts
Normal file
19
vite.config.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react-swc'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': '/src',
|
||||
'@components': '/src/components',
|
||||
'@pages': '/src/pages',
|
||||
'@styles': '/src/styles',
|
||||
'@utils': '/src/utils',
|
||||
'@hooks': '/src/hooks',
|
||||
'@types': '/src/types',
|
||||
'@assets': '/src/assets',
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user