Created an @ alias in the vite config

This commit is contained in:
Mathias
2022-08-14 22:00:17 +02:00
parent 60e04e4e26
commit 71f6efe8dc

View File

@@ -1,10 +1,16 @@
import react from '@vitejs/plugin-react'
import path from "path";
export default {
plugins: [react()],
build: {
outDir: 'build'
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
server: {
proxy: {
"/api": "http://localhost:5216/"