mirror of
https://gitee.com/h_mo/uniapp-vue3-vite-ts-template
synced 2025-04-06 03:58:03 +08:00
chore-vite.config配置
This commit is contained in:
parent
ee7b1a6598
commit
1a4557440c
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@
|
|||||||
/.idea/
|
/.idea/
|
||||||
/.hbuilderx/
|
/.hbuilderx/
|
||||||
/.eslintcache
|
/.eslintcache
|
||||||
|
.pnpm-lock.yaml
|
@ -80,7 +80,6 @@
|
|||||||
"postcss": "^8.4.17",
|
"postcss": "^8.4.17",
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.7.1",
|
||||||
"sass": "^1.55.0",
|
"sass": "^1.55.0",
|
||||||
"terser": "^5.15.1",
|
|
||||||
"typescript": "^4.8.4",
|
"typescript": "^4.8.4",
|
||||||
"unplugin-vue-components": "^0.22.8",
|
"unplugin-vue-components": "^0.22.8",
|
||||||
"vite": "^3.1.6",
|
"vite": "^3.1.6",
|
||||||
|
38
pnpm-lock.yaml
generated
38
pnpm-lock.yaml
generated
@ -25,7 +25,6 @@ specifiers:
|
|||||||
'@types/qs': ^6.9.7
|
'@types/qs': ^6.9.7
|
||||||
'@typescript-eslint/eslint-plugin': ^5.39.0
|
'@typescript-eslint/eslint-plugin': ^5.39.0
|
||||||
'@typescript-eslint/parser': ^5.39.0
|
'@typescript-eslint/parser': ^5.39.0
|
||||||
'@vue/eslint-config-prettier': ^7.0.0
|
|
||||||
autoprefixer: ^10.4.12
|
autoprefixer: ^10.4.12
|
||||||
crypto-js: ^4.1.1
|
crypto-js: ^4.1.1
|
||||||
echarts: ^5.4.0
|
echarts: ^5.4.0
|
||||||
@ -43,7 +42,6 @@ specifiers:
|
|||||||
prettier: ^2.7.1
|
prettier: ^2.7.1
|
||||||
qs: ^6.11.0
|
qs: ^6.11.0
|
||||||
sass: ^1.55.0
|
sass: ^1.55.0
|
||||||
terser: ^5.15.1
|
|
||||||
typescript: ^4.8.4
|
typescript: ^4.8.4
|
||||||
unplugin-vue-components: ^0.22.8
|
unplugin-vue-components: ^0.22.8
|
||||||
vite: ^3.1.6
|
vite: ^3.1.6
|
||||||
@ -86,7 +84,6 @@ devDependencies:
|
|||||||
'@types/qs': 6.9.7
|
'@types/qs': 6.9.7
|
||||||
'@typescript-eslint/eslint-plugin': 5.39.0_cfd7h3iktziq6hcwahu2qxhjhy
|
'@typescript-eslint/eslint-plugin': 5.39.0_cfd7h3iktziq6hcwahu2qxhjhy
|
||||||
'@typescript-eslint/parser': 5.39.0_z4bbprzjrhnsfa24uvmcbu7f5q
|
'@typescript-eslint/parser': 5.39.0_z4bbprzjrhnsfa24uvmcbu7f5q
|
||||||
'@vue/eslint-config-prettier': 7.0.0_znq2sm4m5bonjw4qqm6mwhbe2q
|
|
||||||
autoprefixer: 10.4.12_postcss@8.4.17
|
autoprefixer: 10.4.12_postcss@8.4.17
|
||||||
eslint: 8.25.0
|
eslint: 8.25.0
|
||||||
eslint-config-prettier: 8.5.0_eslint@8.25.0
|
eslint-config-prettier: 8.5.0_eslint@8.25.0
|
||||||
@ -98,7 +95,6 @@ devDependencies:
|
|||||||
postcss: 8.4.17
|
postcss: 8.4.17
|
||||||
prettier: 2.7.1
|
prettier: 2.7.1
|
||||||
sass: 1.55.0
|
sass: 1.55.0
|
||||||
terser: 5.15.1
|
|
||||||
typescript: 4.8.4
|
typescript: 4.8.4
|
||||||
unplugin-vue-components: 0.22.8_vue@3.2.40
|
unplugin-vue-components: 0.22.8_vue@3.2.40
|
||||||
vite: 3.1.6_sass@1.55.0+terser@5.15.1
|
vite: 3.1.6_sass@1.55.0+terser@5.15.1
|
||||||
@ -510,7 +506,7 @@ packages:
|
|||||||
fs-extra: 10.1.0
|
fs-extra: 10.1.0
|
||||||
hash-sum: 2.0.0
|
hash-sum: 2.0.0
|
||||||
jsonc-parser: 3.2.0
|
jsonc-parser: 3.2.0
|
||||||
magic-string: 0.26.6
|
magic-string: 0.26.7
|
||||||
merge: 2.1.1
|
merge: 2.1.1
|
||||||
mime: 3.0.0
|
mime: 3.0.0
|
||||||
module-alias: 2.2.2
|
module-alias: 2.2.2
|
||||||
@ -731,7 +727,7 @@ packages:
|
|||||||
'@vue/compiler-sfc': 3.2.40
|
'@vue/compiler-sfc': 3.2.40
|
||||||
'@vue/shared': 3.2.40
|
'@vue/shared': 3.2.40
|
||||||
debug: 4.3.4
|
debug: 4.3.4
|
||||||
magic-string: 0.26.6
|
magic-string: 0.26.7
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- postcss
|
- postcss
|
||||||
- supports-color
|
- supports-color
|
||||||
@ -1325,7 +1321,7 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@babel/standalone': 7.19.3
|
'@babel/standalone': 7.19.3
|
||||||
core-js: 3.25.5
|
core-js: 3.25.5
|
||||||
magic-string: 0.26.6
|
magic-string: 0.26.7
|
||||||
regenerator-runtime: 0.13.9
|
regenerator-runtime: 0.13.9
|
||||||
systemjs: 6.13.0
|
systemjs: 6.13.0
|
||||||
terser: 5.15.1
|
terser: 5.15.1
|
||||||
@ -1418,18 +1414,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-Ku31WzpOV/8cruFaXaEZKF81WkNnvCSlBY4eOGtz5WMSdJvX1v1WWlSMGZeqUwPtQ27ZZz7B62erEMq8JDjcXw==}
|
resolution: {integrity: sha512-Ku31WzpOV/8cruFaXaEZKF81WkNnvCSlBY4eOGtz5WMSdJvX1v1WWlSMGZeqUwPtQ27ZZz7B62erEMq8JDjcXw==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@vue/eslint-config-prettier/7.0.0_znq2sm4m5bonjw4qqm6mwhbe2q:
|
|
||||||
resolution: {integrity: sha512-/CTc6ML3Wta1tCe1gUeO0EYnVXfo3nJXsIhZ8WJr3sov+cGASr6yuiibJTL6lmIBm7GobopToOuB3B6AWyV0Iw==}
|
|
||||||
peerDependencies:
|
|
||||||
eslint: '>= 7.28.0'
|
|
||||||
prettier: '>= 2.0.0'
|
|
||||||
dependencies:
|
|
||||||
eslint: 8.25.0
|
|
||||||
eslint-config-prettier: 8.5.0_eslint@8.25.0
|
|
||||||
eslint-plugin-prettier: 4.2.1_hvbqyfstm4urdpm6ffpwfka4e4
|
|
||||||
prettier: 2.7.1
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/@vue/reactivity-transform/3.2.40:
|
/@vue/reactivity-transform/3.2.40:
|
||||||
resolution: {integrity: sha512-HQUCVwEaacq6fGEsg2NUuGKIhUveMCjOk8jGHqLXPI2w6zFoPrlQhwWEaINTv5kkZDXKEnCijAp+4gNEHG03yw==}
|
resolution: {integrity: sha512-HQUCVwEaacq6fGEsg2NUuGKIhUveMCjOk8jGHqLXPI2w6zFoPrlQhwWEaINTv5kkZDXKEnCijAp+4gNEHG03yw==}
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -3655,8 +3639,8 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
sourcemap-codec: 1.4.8
|
sourcemap-codec: 1.4.8
|
||||||
|
|
||||||
/magic-string/0.26.6:
|
/magic-string/0.26.7:
|
||||||
resolution: {integrity: sha512-6d+3bFybzyQFJYSoRsl9ZC0wheze8M1LrQC7tNMRqXR4izUTDOLMd9BtSuExK9iAukFh+s5K0WAhc/dlQ+HKYA==}
|
resolution: {integrity: sha512-hX9XH3ziStPoPhJxLq1syWuZMxbDvGNbVchfrdCtanC7D13888bMFow61x8axrx+GfHLtVeAx2kxL7tTGRl+Ow==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
dependencies:
|
dependencies:
|
||||||
sourcemap-codec: 1.4.8
|
sourcemap-codec: 1.4.8
|
||||||
@ -4506,6 +4490,14 @@ packages:
|
|||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
fsevents: 2.3.2
|
fsevents: 2.3.2
|
||||||
|
|
||||||
|
/rollup/2.79.1:
|
||||||
|
resolution: {integrity: sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==}
|
||||||
|
engines: {node: '>=10.0.0'}
|
||||||
|
hasBin: true
|
||||||
|
optionalDependencies:
|
||||||
|
fsevents: 2.3.2
|
||||||
|
dev: true
|
||||||
|
|
||||||
/run-async/2.4.1:
|
/run-async/2.4.1:
|
||||||
resolution: {integrity: sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==}
|
resolution: {integrity: sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==}
|
||||||
engines: {node: '>=0.12.0'}
|
engines: {node: '>=0.12.0'}
|
||||||
@ -5052,7 +5044,7 @@ packages:
|
|||||||
debug: 4.3.4
|
debug: 4.3.4
|
||||||
fast-glob: 3.2.12
|
fast-glob: 3.2.12
|
||||||
local-pkg: 0.4.2
|
local-pkg: 0.4.2
|
||||||
magic-string: 0.26.6
|
magic-string: 0.26.7
|
||||||
minimatch: 5.1.0
|
minimatch: 5.1.0
|
||||||
resolve: 1.22.1
|
resolve: 1.22.1
|
||||||
unplugin: 0.9.6
|
unplugin: 0.9.6
|
||||||
@ -5186,7 +5178,7 @@ packages:
|
|||||||
'@rollup/pluginutils': 4.2.1
|
'@rollup/pluginutils': 4.2.1
|
||||||
'@types/eslint': 8.4.6
|
'@types/eslint': 8.4.6
|
||||||
eslint: 8.25.0
|
eslint: 8.25.0
|
||||||
rollup: 2.78.1
|
rollup: 2.79.1
|
||||||
vite: 3.1.6_sass@1.55.0+terser@5.15.1
|
vite: 3.1.6_sass@1.55.0+terser@5.15.1
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
@ -18,15 +18,6 @@ export default ({ mode }: ConfigEnv): UserConfig => {
|
|||||||
define: {
|
define: {
|
||||||
'process.env': {},
|
'process.env': {},
|
||||||
},
|
},
|
||||||
build: {
|
|
||||||
minify: 'terser',
|
|
||||||
terserOptions: {
|
|
||||||
compress: {
|
|
||||||
// 发布时删除 console
|
|
||||||
// drop_console: env.VITE_PROD as any,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
server: {
|
server: {
|
||||||
host: true,
|
host: true,
|
||||||
// open: true,
|
// open: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user