mirror of
https://github.com/fugary/simple-element-plus-template.git
synced 2026-02-22 22:27:00 +00:00
dep: 升级依赖
This commit is contained in:
@@ -17,6 +17,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
'vue/multi-word-component-names': 'off',
|
'vue/multi-word-component-names': 'off',
|
||||||
|
'@typescript-eslint/no-unused-expressions': 'off',
|
||||||
'@typescript-eslint/no-explicit-any': 'off'
|
'@typescript-eslint/no-explicit-any': 'off'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
9887
package-lock.json
generated
9887
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
54
package.json
54
package.json
@@ -14,44 +14,44 @@
|
|||||||
"url": "https://github.com/fugary/simple-element-plus-template"
|
"url": "https://github.com/fugary/simple-element-plus-template"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@element-plus/icons-vue": "^2.3.1",
|
"@element-plus/icons-vue": "^2.3.2",
|
||||||
"@guolao/vue-monaco-editor": "^1.5.5",
|
"@guolao/vue-monaco-editor": "^1.6.0",
|
||||||
"@howiefh/ant-path-matcher": "^0.0.4",
|
"@howiefh/ant-path-matcher": "^0.0.4",
|
||||||
"@vicons/material": "^0.12.0",
|
"@vicons/material": "^0.13.0",
|
||||||
"@vueuse/core": "^10.11.1",
|
"@vueuse/core": "^14.2.0",
|
||||||
"async-validator": "^4.2.5",
|
"async-validator": "^4.2.5",
|
||||||
"axios": "^1.7.9",
|
"axios": "^1.13.4",
|
||||||
"dayjs": "^1.11.13",
|
"dayjs": "^1.11.19",
|
||||||
"echarts": "^5.5.0",
|
"echarts": "^6.0.0",
|
||||||
"element-plus": "^2.9.11",
|
"element-plus": "^2.13.2",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.23",
|
||||||
"monaco-editor": "^0.52.2",
|
"monaco-editor": "^0.55.1",
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
"numeral": "^2.0.6",
|
"numeral": "^2.0.6",
|
||||||
"pinia": "^2.3.1",
|
"pinia": "^3.0.4",
|
||||||
"pinia-plugin-persistedstate": "^3.2.3",
|
"pinia-plugin-persistedstate": "^4.7.1",
|
||||||
"sortablejs": "^1.15.6",
|
"sortablejs": "^1.15.6",
|
||||||
"split.js": "^1.6.5",
|
"split.js": "^1.6.5",
|
||||||
"ua-parser-js": "^1.0.38",
|
"ua-parser-js": "^2.0.8",
|
||||||
"vite-plugin-mock": "^3.0.1",
|
"vite-plugin-mock": "^3.0.2",
|
||||||
"vue": "^3.4.38",
|
"vue": "^3.5.27",
|
||||||
"vue-echarts": "^6.7.3",
|
"vue-echarts": "^8.0.1",
|
||||||
"vue-i18n": "^9.14.4",
|
"vue-i18n": "^11.2.8",
|
||||||
"vue-router": "^4.5.1",
|
"vue-router": "^5.0.1",
|
||||||
"vue-virtual-scroller": "^2.0.0-beta.8"
|
"vue-virtual-scroller": "^2.0.0-beta.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rushstack/eslint-patch": "^1.10.5",
|
"@rushstack/eslint-patch": "^1.15.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^7.13.1",
|
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
||||||
"@typescript-eslint/parser": "^7.18.0",
|
"@typescript-eslint/parser": "^8.54.0",
|
||||||
"@vitejs/plugin-vue": "^5.2.4",
|
"@vitejs/plugin-vue": "^6.0.3",
|
||||||
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
"@vitejs/plugin-vue-jsx": "^5.1.3",
|
||||||
"@vue/eslint-config-standard": "^8.0.1",
|
"@vue/eslint-config-standard": "^8.0.1",
|
||||||
"eslint": "^8.57.1",
|
"eslint": "^8.57.1",
|
||||||
"eslint-plugin-vue": "^9.32.0",
|
"eslint-plugin-vue": "^9.33.0",
|
||||||
"rollup-plugin-visualizer": "^5.14.0",
|
"rollup-plugin-visualizer": "^6.0.5",
|
||||||
"typescript": "^5.7.3",
|
"typescript": "^5.9.3",
|
||||||
"vite": "^5.4.19",
|
"vite": "^7.3.1",
|
||||||
"vite-plugin-eslint": "^1.8.1"
|
"vite-plugin-eslint": "^1.8.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { fileURLToPath, URL } from 'node:url'
|
import { fileURLToPath, URL } from 'node:url'
|
||||||
|
|
||||||
import { defineConfig, loadEnv, splitVendorChunkPlugin } from 'vite'
|
import { defineConfig, loadEnv } from 'vite'
|
||||||
import vue from '@vitejs/plugin-vue'
|
import vue from '@vitejs/plugin-vue'
|
||||||
import { viteMockServe } from 'vite-plugin-mock'
|
import { viteMockServe } from 'vite-plugin-mock'
|
||||||
import vueJsx from '@vitejs/plugin-vue-jsx'
|
import vueJsx from '@vitejs/plugin-vue-jsx'
|
||||||
@@ -16,9 +16,6 @@ const optionalPlugins = [{
|
|||||||
mockPath: './mock'
|
mockPath: './mock'
|
||||||
}),
|
}),
|
||||||
enabled: true
|
enabled: true
|
||||||
}, {
|
|
||||||
plugin: splitVendorChunkPlugin(),
|
|
||||||
enabled: true
|
|
||||||
}].filter(p => p.enabled).map(p => p.plugin)
|
}].filter(p => p.enabled).map(p => p.plugin)
|
||||||
|
|
||||||
const JS_FILE_NAMES = 'js/[name]-[hash].js'
|
const JS_FILE_NAMES = 'js/[name]-[hash].js'
|
||||||
@@ -49,7 +46,7 @@ export default ({ mode }) => {
|
|||||||
output: {
|
output: {
|
||||||
chunkFileNames: JS_FILE_NAMES, // 引入文件名的名称
|
chunkFileNames: JS_FILE_NAMES, // 引入文件名的名称
|
||||||
entryFileNames: JS_FILE_NAMES, // 包的入口文件名称
|
entryFileNames: JS_FILE_NAMES, // 包的入口文件名称
|
||||||
assetFileNames (assetInfo) {
|
assetFileNames(assetInfo) {
|
||||||
if (assetInfo.name?.endsWith('.css')) { // CSS文件
|
if (assetInfo.name?.endsWith('.css')) { // CSS文件
|
||||||
return CSS_FILE_NAMES
|
return CSS_FILE_NAMES
|
||||||
} else if (IMG_EXT_LIST.some((ext) => assetInfo.name?.endsWith(ext))) { // 图片
|
} else if (IMG_EXT_LIST.some((ext) => assetInfo.name?.endsWith(ext))) { // 图片
|
||||||
@@ -57,7 +54,7 @@ export default ({ mode }) => {
|
|||||||
}
|
}
|
||||||
return 'assets/[name]-[hash].[ext]' // 其他资源
|
return 'assets/[name]-[hash].[ext]' // 其他资源
|
||||||
},
|
},
|
||||||
manualChunks (id) {
|
manualChunks(id) {
|
||||||
if (id.includes('element-plus')) {
|
if (id.includes('element-plus')) {
|
||||||
return 'elp'
|
return 'elp'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user