mirror of
https://github.com/gnmyt/myspeed.git
synced 2025-12-30 09:40:13 -06:00
Created an @ alias in the vite config
This commit is contained in:
@@ -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/"
|
||||
|
||||
Reference in New Issue
Block a user