From 90675cb210f5a2afc4766e6fd091776a14397d48 Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期三, 23 四月 2025 17:34:01 +0800
Subject: [PATCH] 最新版

---
 vite.config.ts |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/vite.config.ts b/vite.config.ts
index 433fd41..fa1c88f 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1,14 +1,26 @@
 import { defineConfig } from 'vite'
 import vue from '@vitejs/plugin-vue'
 import path from 'path'
+import legacyPlugin from '@vitejs/plugin-legacy'
 
 // https://vitejs.dev/config/
 export default defineConfig({
-  plugins: [vue()],
+  plugins: [
+    vue(),
+    legacyPlugin({
+      targets: ['defaults', 'chrome 52', 'ie >= 11','Safari >= 8'], 聽// 闇�瑕佸吋瀹圭殑鐩爣鍒楄〃锛屽彲浠ヨ缃涓�
+      additionalLegacyPolyfills: ['regenerator-runtime/runtime'], // 闈㈠悜IE11鏃堕渶瑕佹鎻掍欢
+      renderLegacyChunks: true,
+      polyfills: true,
+      modernPolyfills: true,
+    })
+  ],
+  build:{target: ['ios8', 'edge90', 'chrome52', 'firefox90', 'safari8']},
   server: {
-    host: true, // Expose to all network interfaces
-    port: 5174, // Default Vite port
+    host: '0.0.0.0' // Expose to all network interfaces
+    // port: 5174, // Default Vite port
   },
+  base: "./",
   resolve: {
     alias: {
       '@': path.resolve(__dirname, './src')

--
Gitblit v1.9.1