From ee434b465a366b22a752447b94b785761f961605 Mon Sep 17 00:00:00 2001 From: Soybean Date: Wed, 3 Aug 2022 22:25:04 +0800 Subject: [PATCH] =?UTF-8?q?build(projects):=20=E5=8D=87=E7=BA=A7=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=E3=80=81vite=E9=85=8D=E7=BD=AEoptimizeDeps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 16 ++++++++-------- src/router/modules/about.ts | 2 +- vite.config.ts | 13 +++++++++++++ 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index c6f0797b..6c51c27f 100644 --- a/package.json +++ b/package.json @@ -60,15 +60,15 @@ "@amap/amap-jsapi-types": "^0.0.8", "@commitlint/cli": "^17.0.3", "@commitlint/config-conventional": "^17.0.3", - "@iconify/json": "^2.1.85", + "@iconify/json": "^2.1.87", "@iconify/vue": "^3.2.1", "@types/bmapgl": "^0.0.5", "@types/crypto-js": "^4.1.1", - "@types/node": "^18.6.2", + "@types/node": "^18.6.3", "@types/qs": "^6.9.7", "@types/ua-parser-js": "^0.7.36", - "@typescript-eslint/eslint-plugin": "^5.31.0", - "@typescript-eslint/parser": "^5.31.0", + "@typescript-eslint/eslint-plugin": "^5.32.0", + "@typescript-eslint/parser": "^5.32.0", "@vitejs/plugin-vue": "^3.0.1", "@vitejs/plugin-vue-jsx": "^2.0.0", "@vue/eslint-config-prettier": "^7.0.0", @@ -77,7 +77,7 @@ "cross-env": "^7.0.3", "cz-conventional-changelog": "^3.3.0", "cz-customizable": "^6.9.1", - "eslint": "^8.20.0", + "eslint": "^8.21.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^8.5.0", "eslint-import-resolver-alias": "^1.1.2", @@ -90,20 +90,20 @@ "postinstall-postinstall": "^2.1.0", "prettier": "^2.7.1", "rollup-plugin-visualizer": "^5.7.1", - "sass": "^1.54.0", + "sass": "^1.54.1", "standard-version": "^9.5.0", "typescript": "^4.7.4", "unocss": "^0.45.1", "unplugin-icons": "^0.14.8", "unplugin-vue-components": "0.21.2", - "unplugin-vue-define-options": "^0.6.2", + "unplugin-vue-define-options": "^0.7.1", "vite": "^3.0.4", "vite-plugin-compression": "^0.5.1", "vite-plugin-html": "^3.2.0", "vite-plugin-mock": "^2.9.6", "vite-plugin-svg-icons": "^2.0.1", "vue-eslint-parser": "^9.0.3", - "vue-tsc": "^0.39.2" + "vue-tsc": "^0.39.4" }, "homepage": "https://github.com/honghuangdc/soybean-admin", "description": "A fresh and elegant admin template, based on Vue3、Vite3、TypeScript、NaiveUI and UnoCSS. 一个基于Vue3、Vite3、TypeScript、NaiveUI and UnoCSS的清新优雅的中后台模版。", diff --git a/src/router/modules/about.ts b/src/router/modules/about.ts index 687ad2db..6f149fc1 100644 --- a/src/router/modules/about.ts +++ b/src/router/modules/about.ts @@ -8,7 +8,7 @@ const about: AuthRoute.Route = { singleLayout: 'basic', permissions: ['super', 'admin', 'user'], icon: 'fluent:book-information-24-regular', - order: 9 + order: 10 } }; diff --git a/vite.config.ts b/vite.config.ts index 56457bac..39da360c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -37,6 +37,19 @@ export default defineConfig(configEnv => { preview: { port: 5050 }, + optimizeDeps: { + include: [ + '@antv/data-set', + '@antv/g2', + '@better-scroll/core', + 'echarts', + 'swiper', + 'swiper/vue', + 'vditor', + 'wangeditor', + 'xgplayer' + ] + }, build: { reportCompressedSize: false, sourcemap: false,