Blame view

泰额版/Food Labeling Management App UniApp/vite.config.ts 376 Bytes
59e51671   “wangming”   1
1
2
3
  import { defineConfig } from "vite";
  import uni from "@dcloudio/vite-plugin-uni";
  
59e51671   “wangming”   1
4
  // 仅 App:相对路径,避免打包后 www/_uniappview.html 无法打开
5a192b24   杨鑫   最新同步
5
  // API 直连后端,见 .env.development / .env.production 中的 VITE_US_API_BASE
59e51671   “wangming”   1
6
7
8
9
10
11
  // https://vitejs.dev/config/
  export default defineConfig({
    base: "./",
    plugins: [uni()],
    server: {
      open: "/",
59e51671   “wangming”   1
12
13
    },
  });