From 696e85cf6422c703fbba63df097320bd813d9926 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 14 七月 2026 15:40:33 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev_pro2.0' into dev_pro2.0
---
vite.config.ts | 44 +++++++++++++++-----------------------------
1 files changed, 15 insertions(+), 29 deletions(-)
diff --git a/vite.config.ts b/vite.config.ts
index 5e6b6b4..fc2ee92 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -8,39 +8,25 @@
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: {
output: {
- manualChunks: (id) => {
- if (id.includes('node_modules')) {
- if (['vue', 'vue-router', 'pinia'].some(dep => id.includes(dep))) {
- return 'vendor-vue';
+ manualChunks: id => {
+ if (id.includes("node_modules")) {
+ if (["vue", "vue-router", "pinia"].some(dep => id.includes(dep))) {
+ return "vendor-vue";
}
- if (['ant-design-vue', '@vueuse/core'].some(dep => id.includes(dep))) {
- return 'vendor-ui';
+ if (["ant-design-vue", "@vueuse/core"].some(dep => id.includes(dep))) {
+ return "vendor-ui";
}
- if (['dayjs', 'axios', '@vee-validate/zod', 'zod'].some(dep => id.includes(dep))) {
- return 'vendor-utils';
+ if (["dayjs", "axios", "@vee-validate/zod", "zod"].some(dep => id.includes(dep))) {
+ return "vendor-utils";
}
- if (['tinymce', '@tinymce/tinymce-vue', '@form-create/ant-design-vue'].some(dep => id.includes(dep))) {
- return 'vendor-editor';
+ if (["tinymce", "@tinymce/tinymce-vue", "@form-create/ant-design-vue"].some(dep => id.includes(dep))) {
+ return "vendor-editor";
}
}
},
@@ -50,13 +36,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,
},
},
--
Gitblit v1.9.3