27 lines
465 B
TypeScript
27 lines
465 B
TypeScript
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
import { defineConfig } from 'vite'
|
|
import Uni from '@uni-helper/plugin-uni'
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
}
|
|
},
|
|
plugins: [
|
|
// https://uni-helper.js.org/plugin-uni
|
|
Uni(),
|
|
],
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://192.168.0.206:8080',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
})
|
|
|
|
|