From 6da78f667c6314148a871c07748d42895b65d79c Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期三, 28 一月 2026 15:22:33 +0800
Subject: [PATCH] 前端webpack更改vite

---
 Code/WMS/WIDESEA_WMSClient/package.json |   18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)

diff --git a/Code/WMS/WIDESEA_WMSClient/package.json b/Code/WMS/WIDESEA_WMSClient/package.json
index 05c9cec..dc5d17f 100644
--- a/Code/WMS/WIDESEA_WMSClient/package.json
+++ b/Code/WMS/WIDESEA_WMSClient/package.json
@@ -3,8 +3,9 @@
   "version": "0.1.0",
   "private": true,
   "scripts": {
-    "server": "vue-cli-service serve",
-    "build": "vue-cli-service build",
+    "dev": "vite",
+    "build": "vite build",
+    "preview": "vite preview --port 8080",
     "test:unit": "vue-cli-service test:unit",
     "lint": "vue-cli-service lint"
   },
@@ -28,15 +29,9 @@
   },
   "devDependencies": {
     "@babel/plugin-syntax-dynamic-import": "^7.8.3",
-    "@vue/cli-plugin-babel": "~4.5.0",
-    "@vue/cli-plugin-eslint": "~4.5.0",
-    "@vue/cli-plugin-router": "~4.5.0",
-    "@vue/cli-plugin-unit-mocha": "~4.5.0",
-    "@vue/cli-plugin-vuex": "~4.5.0",
-    "@vue/cli-service": "~4.5.0",
+    "@vitejs/plugin-vue": "^4.0.0",
     "@vue/compiler-sfc": "^3.0.0",
     "@vue/test-utils": "^2.0.0-0",
-    "babel-eslint": "^10.1.0",
     "chai": "^4.1.2",
     "cross-env": "^7.0.3",
     "less": "^4.1.1",
@@ -44,7 +39,8 @@
     "sass": "^1.78.0",
     "sass-loader": "^16.0.1",
     "stylus": "^0.54.7",
-    "stylus-loader": "^3.0.2"
+    "stylus-loader": "^3.0.2",
+    "vite": "^5.0.0"
   },
   "eslintConfig": {
     "root": true,
@@ -68,5 +64,5 @@
   "eslintIgnore": [
     "*"
   ],
-  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
+  "packageManager": "yarn@4.12.0"
 }

--
Gitblit v1.9.3