提交 404a9f7c 作者: 方治民

Merge branch '3.x' of https://gitlab.yiring.com/basic/basic-vue-admin into dev

...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
"default-passive-events": "^2.0.0", "default-passive-events": "^2.0.0",
"echarts": "^5.4.2", "echarts": "^5.4.2",
"exceljs": "^4.3.0", "exceljs": "^4.3.0",
"intro.js": "^6.0.0", "intro.js": "^7.0.1",
"js-file-download": "^0.4.12", "js-file-download": "^0.4.12",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",
"mockjs": "^1.1.0", "mockjs": "^1.1.0",
...@@ -103,10 +103,10 @@ ...@@ -103,10 +103,10 @@
"xlsx": "^0.18.5" "xlsx": "^0.18.5"
}, },
"devDependencies": { "devDependencies": {
"@antfu/eslint-config": "^0.37.0", "@antfu/eslint-config": "^0.38.2",
"@commitlint/cli": "^17.5.1", "@commitlint/cli": "^17.5.1",
"@commitlint/config-conventional": "^17.4.4", "@commitlint/config-conventional": "^17.4.4",
"@iconify/json": "^2.2.41", "@iconify/json": "^2.2.42",
"@purge-icons/generated": "^0.9.0", "@purge-icons/generated": "^0.9.0",
"@types/codemirror": "^5.60.7", "@types/codemirror": "^5.60.7",
"@types/crypto-js": "^4.1.1", "@types/crypto-js": "^4.1.1",
...@@ -171,12 +171,12 @@ ...@@ -171,12 +171,12 @@
"stylelint-order": "^5.0.0", "stylelint-order": "^5.0.0",
"terser": "^5.16.8", "terser": "^5.16.8",
"ts-node": "^10.9.1", "ts-node": "^10.9.1",
"typescript": "^4.9.5", "typescript": "^5.0.3",
"unplugin-auto-import": "^0.12.2", "unplugin-auto-import": "^0.15.2",
"vite": "^4.2.1", "vite": "^4.2.1",
"vite-plugin-compression": "^0.5.1", "vite-plugin-compression": "^0.5.1",
"vite-plugin-html": "^3.2.0", "vite-plugin-html": "^3.2.0",
"vite-plugin-mkcert": "^1.13.4", "vite-plugin-mkcert": "^1.14.0",
"vite-plugin-mock": "^2.9.6", "vite-plugin-mock": "^2.9.6",
"vite-plugin-purge-icons": "^0.9.2", "vite-plugin-purge-icons": "^0.9.2",
"vite-plugin-pwa": "^0.14.7", "vite-plugin-pwa": "^0.14.7",
...@@ -185,7 +185,7 @@ ...@@ -185,7 +185,7 @@
"vite-plugin-theme": "^0.8.6", "vite-plugin-theme": "^0.8.6",
"vite-plugin-vue-setup-extend": "^0.4.0", "vite-plugin-vue-setup-extend": "^0.4.0",
"vite-plugin-windicss": "^1.8.10", "vite-plugin-windicss": "^1.8.10",
"vue-eslint-parser": "^9.1.0", "vue-eslint-parser": "^9.1.1",
"vue-tsc": "^1.2.0" "vue-tsc": "^1.2.0"
}, },
"engines": { "engines": {
......
...@@ -26,7 +26,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => { ...@@ -26,7 +26,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
// The boolean type read by loadEnv is a string. This function can be converted to boolean type // The boolean type read by loadEnv is a string. This function can be converted to boolean type
const viteEnv = wrapperEnv(env) const viteEnv = wrapperEnv(env)
const { VITE_PORT, VITE_PUBLIC_PATH, VITE_PROXY, VITE_DROP_CONSOLE } = viteEnv const { VITE_PORT, VITE_PUBLIC_PATH, VITE_PROXY } = viteEnv
const isBuild = command === 'build' const isBuild = command === 'build'
...@@ -62,17 +62,6 @@ export default ({ command, mode }: ConfigEnv): UserConfig => { ...@@ -62,17 +62,6 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
build: { build: {
target: 'es2015', target: 'es2015',
cssTarget: 'chrome80', cssTarget: 'chrome80',
minify: 'terser',
/**
* 当 minify=“minify:'terser'” 解开注释
* Uncomment when minify="minify:'terser'"
*/
terserOptions: {
compress: {
keep_infinity: true,
drop_console: VITE_DROP_CONSOLE,
},
},
// Turning off brotliSize display can slightly reduce packaging time // Turning off brotliSize display can slightly reduce packaging time
reportCompressedSize: false, reportCompressedSize: false,
chunkSizeWarningLimit: 2000, chunkSizeWarningLimit: 2000,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论