36 lines
677 B
TypeScript
36 lines
677 B
TypeScript
|
|
import { defineConfig } from 'vite'
|
||
|
|
import uni from '@dcloudio/vite-plugin-uni'
|
||
|
|
import path from 'path'
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
plugins: [
|
||
|
|
uni()
|
||
|
|
],
|
||
|
|
resolve: {
|
||
|
|
alias: {
|
||
|
|
'@': path.resolve(__dirname, 'src')
|
||
|
|
}
|
||
|
|
},
|
||
|
|
server: {
|
||
|
|
port: 5173,
|
||
|
|
proxy: {
|
||
|
|
'/mobile': {
|
||
|
|
target: 'http://localhost:8080',
|
||
|
|
changeOrigin: true
|
||
|
|
},
|
||
|
|
'/getInfo': {
|
||
|
|
target: 'http://localhost:8080',
|
||
|
|
changeOrigin: true
|
||
|
|
},
|
||
|
|
'/system': {
|
||
|
|
target: 'http://localhost:8080',
|
||
|
|
changeOrigin: true
|
||
|
|
},
|
||
|
|
'/api': {
|
||
|
|
target: 'http://localhost:8080',
|
||
|
|
changeOrigin: true
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
})
|