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/README.md | 45 +++++++++++++++++----------------------------
1 files changed, 17 insertions(+), 28 deletions(-)
diff --git a/Code/WMS/WIDESEA_WMSClient/README.md b/Code/WMS/WIDESEA_WMSClient/README.md
index 1d81700..d246953 100644
--- a/Code/WMS/WIDESEA_WMSClient/README.md
+++ b/Code/WMS/WIDESEA_WMSClient/README.md
@@ -1,41 +1,30 @@
# vol.vue3
## Project setup
-```
-npm install
+
+Install dependencies:
+```bash
+yarn install
```
-### Compiles and hot-reloads for development
-```
-npm run serve
+Development (Vite):
+```bash
+yarn dev
```
-### Compiles and minifies for production
-```
-npm run build
+Build for production:
+```bash
+yarn build
```
-### Run your unit tests
-```
-npm run test:unit
+Preview production build locally:
+```bash
+yarn preview
```
-### Lints and fixes files
-```
-npm run lint
-```
+Notes:
+- This project was migrated from Vue CLI / webpack to Vite. Source files and imports were adjusted for Vite (explicit `.vue` imports, alias `@` configured).
+- Existing `vue.config.js` and Vue CLI dev dependencies remain for compatibility; you can remove them after verifying the Vite setup.
-### Customize configuration
-See [Configuration Reference](https://cli.vuejs.org/config/).
-
-
-### npm run serve鍚姩寮傚父锛�
- 浣跨敤cmd杈撳叆node -v鏌ョ湅鐗堟湰锛屽鏋滄槸18.+鐗堟湰,璇峰皢package.json涓浜旇scripts涓殑鍐呭鏇挎崲涓猴細
-
-"scripts": {
- "serve": " SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
- "build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
- "test:unit": "vue-cli-service test:unit",
- "lint": "vue-cli-service lint"
-}
+If you previously used `npm run serve` with Vue CLI, switch to the Vite commands above.
--
Gitblit v1.9.3