Skip to content

Commit

Permalink
build(projects): 升级依赖、vite配置optimizeDeps
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Aug 3, 2022
1 parent 2aba58c commit ee434b4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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的清新优雅的中后台模版。",
Expand Down
2 changes: 1 addition & 1 deletion src/router/modules/about.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const about: AuthRoute.Route = {
singleLayout: 'basic',
permissions: ['super', 'admin', 'user'],
icon: 'fluent:book-information-24-regular',
order: 9
order: 10
}
};

Expand Down
13 changes: 13 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

1 comment on commit ee434b4

@vercel
Copy link

@vercel vercel bot commented on ee434b4 Aug 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.