2025-09-15
This commit is contained in:
15
vite.config.js
Normal file
15
vite.config.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import {
|
||||
defineConfig
|
||||
} from 'vite';
|
||||
import uni from '@dcloudio/vite-plugin-uni';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [uni()],
|
||||
server: {
|
||||
host: "0.0.0.0", // 指定服务器应该监听哪个IP地址,默认:localhost
|
||||
port: 5173, // 指定开发服务器端口,默认:5173
|
||||
proxy: { // 为开发服务器配置自定义代理规则
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user