刪除 package-lock.json 和 yarn.lock 檔案,新增 antd-mobile-icons 依賴,並更新 package.json 中的腳本命令以使用 pnpm 進行構建和開發,調整 Vite 配置以允許從所有主機訪問。

This commit is contained in:
超级老白兔
2025-08-12 16:58:28 +08:00
parent 746d3af943
commit be9e07cfea
5 changed files with 4965 additions and 10306 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -7,6 +7,7 @@
"@ant-design/icons": "^5.6.1",
"antd": "^5.13.1",
"antd-mobile": "^5.39.1",
"antd-mobile-icons": "^0.3.0",
"axios": "^1.6.7",
"dayjs": "^1.11.13",
"echarts": "^5.6.0",
@@ -37,10 +38,10 @@
"vite": "^7.0.5"
},
"scripts": {
"dev": "vite",
"build": "vite build",
"build:check": "tsc && vite build",
"preview": "vite preview",
"dev": "pnpm vite",
"build": "pnpm vite build",
"build:check": "tsc && pnpm vite build",
"preview": "pnpm vite preview",
"lint": "eslint src --ext .js,.jsx,.ts,.tsx --fix",
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx,json,scss,css}\"",
"lint:check": "eslint src --ext .js,.jsx,.ts,.tsx",

4959
Cunkebao/pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -12,6 +12,7 @@ export default defineConfig({
server: {
open: true,
port: 3000,
host: "0.0.0.0",
},
build: {
chunkSizeWarningLimit: 2000,

File diff suppressed because it is too large Load Diff