zhangwencui
2026-07-14 d171971461713d9d6d9ccb989fa2195d7d9ee1c6
vite.config.ts
@@ -8,22 +8,8 @@
        enable: false,
      },
      optimizeDeps: {
        include: [
          "vue",
          "vue-router",
          "pinia",
          "ant-design-vue",
          "dayjs",
          "@vueuse/core",
          "axios",
        ],
        exclude: [
          "dhtmlx-gantt",
          "tinymce",
          "bpmn-js",
          "bpmn-js-properties-panel",
          "video.js",
        ],
        include: ["vue", "vue-router", "pinia", "ant-design-vue", "dayjs", "@vueuse/core", "axios"],
        exclude: ["dhtmlx-gantt", "tinymce", "bpmn-js", "bpmn-js-properties-panel", "video.js"],
      },
      build: {
        rollupOptions: {
@@ -32,11 +18,7 @@
              "vendor-vue": ["vue", "vue-router", "pinia"],
              "vendor-ui": ["ant-design-vue", "@vueuse/core"],
              "vendor-utils": ["dayjs", "axios", "@vee-validate/zod", "zod"],
              "vendor-editor": [
                "tinymce",
                "@tinymce/tinymce-vue",
                "@form-create/ant-design-vue",
              ],
              "vendor-editor": ["tinymce", "@tinymce/tinymce-vue", "@form-create/ant-design-vue"],
            },
          },
        },
@@ -44,13 +26,13 @@
      server: {
        allowedHosts: true,
        watch: {
          ignored: ['**/node_modules/**', '**/dist/**', '**/.git/**'],
          ignored: ["**/node_modules/**", "**/dist/**", "**/.git/**"],
        },
        proxy: {
          "/admin-api": {
            changeOrigin: true,
            rewrite: (path) => path.replace(/^\/admin-api/, ""),
            target: "http://192.168.0.226:48080/admin-api",
            rewrite: path => path.replace(/^\/admin-api/, ""),
            target: "http://192.168.0.244:48080/admin-api",
            ws: true,
          },
        },