Blame view

.pnpm-store/v11/projects/0e47ef389c0c12bdfaeb86af6e6a20bb/vite.config.ts 376 Bytes
383e20a3   杨鑫   拉取
1
2
3
4
5
6
7
8
9
10
11
12
13
  import { defineConfig } from "vite";
  import uni from "@dcloudio/vite-plugin-uni";
  
  // 仅 App:相对路径,避免打包后 www/_uniappview.html 无法打开
  // API 直连后端,见 .env.development / .env.production 中的 VITE_US_API_BASE
  // https://vitejs.dev/config/
  export default defineConfig({
    base: "./",
    plugins: [uni()],
    server: {
      open: "/",
    },
  });