mirror of
https://gitee.com/h_mo/uniapp-vue3-vite-ts-template
synced 2025-04-05 06:12:44 +08:00
chore-更新依赖/配置修改
This commit is contained in:
parent
3b0e99fa9b
commit
cac2628eae
50
package.json
50
package.json
@ -18,7 +18,7 @@
|
||||
"dev:quickapp-webview-union": "uni -p quickapp-webview-union",
|
||||
"build:app": "uni build -p app",
|
||||
"build:custom": "uni build -p",
|
||||
"build:h5": "uni build",
|
||||
"build:h5": "uni build --minify",
|
||||
"build:h5:ssr": "uni build --ssr",
|
||||
"build:mp-alipay": "uni build -p mp-alipay",
|
||||
"build:mp-baidu": "uni build -p mp-baidu",
|
||||
@ -26,7 +26,7 @@
|
||||
"build:mp-lark": "uni build -p mp-lark",
|
||||
"build:mp-qq": "uni build -p mp-qq",
|
||||
"build:mp-toutiao": "uni build -p mp-toutiao",
|
||||
"build:mp-weixin": "uni build -p mp-weixin",
|
||||
"build:mp-weixin": "uni build -p mp-weixin --minify",
|
||||
"build:quickapp-webview": "uni build -p quickapp-webview",
|
||||
"build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei",
|
||||
"build:quickapp-webview-union": "uni build -p quickapp-webview-union",
|
||||
@ -35,18 +35,18 @@
|
||||
"prepare": "husky install"
|
||||
},
|
||||
"dependencies": {
|
||||
"@dcloudio/uni-app": "^3.0.0-alpha-3041420220607001",
|
||||
"@dcloudio/uni-app-plus": "^3.0.0-alpha-3041420220607001",
|
||||
"@dcloudio/uni-components": "^3.0.0-alpha-3041420220607001",
|
||||
"@dcloudio/uni-h5": "^3.0.0-alpha-3041420220607001",
|
||||
"@dcloudio/uni-mp-alipay": "^3.0.0-alpha-3041420220607001",
|
||||
"@dcloudio/uni-mp-baidu": "^3.0.0-alpha-3041420220607001",
|
||||
"@dcloudio/uni-mp-kuaishou": "^3.0.0-alpha-3041420220607001",
|
||||
"@dcloudio/uni-mp-lark": "^3.0.0-alpha-3041420220607001",
|
||||
"@dcloudio/uni-mp-qq": "^3.0.0-alpha-3041420220607001",
|
||||
"@dcloudio/uni-mp-toutiao": "^3.0.0-alpha-3041420220607001",
|
||||
"@dcloudio/uni-mp-weixin": "^3.0.0-alpha-3041420220607001",
|
||||
"@dcloudio/uni-quickapp-webview": "^3.0.0-alpha-3041420220607001",
|
||||
"@dcloudio/uni-app": "^3.0.0-alpha-3041720220614001",
|
||||
"@dcloudio/uni-app-plus": "^3.0.0-alpha-3041720220614001",
|
||||
"@dcloudio/uni-components": "^3.0.0-alpha-3041720220614001",
|
||||
"@dcloudio/uni-h5": "^3.0.0-alpha-3041720220614001",
|
||||
"@dcloudio/uni-mp-alipay": "^3.0.0-alpha-3041720220614001",
|
||||
"@dcloudio/uni-mp-baidu": "^3.0.0-alpha-3041720220614001",
|
||||
"@dcloudio/uni-mp-kuaishou": "^3.0.0-alpha-3041720220614001",
|
||||
"@dcloudio/uni-mp-lark": "^3.0.0-alpha-3041720220614001",
|
||||
"@dcloudio/uni-mp-qq": "^3.0.0-alpha-3041720220614001",
|
||||
"@dcloudio/uni-mp-toutiao": "^3.0.0-alpha-3041720220614001",
|
||||
"@dcloudio/uni-mp-weixin": "^3.0.0-alpha-3041720220614001",
|
||||
"@dcloudio/uni-quickapp-webview": "^3.0.0-alpha-3041720220614001",
|
||||
"crypto-js": "^4.1.1",
|
||||
"lodash-es": "^4.17.21",
|
||||
"pinia": "^2.0.14",
|
||||
@ -56,26 +56,26 @@
|
||||
"devDependencies": {
|
||||
"@dcasia/mini-program-tailwind-webpack-plugin": "^1.4.1",
|
||||
"@dcloudio/types": "^2.6.11",
|
||||
"@dcloudio/uni-automator": "^3.0.0-alpha-3041420220607001",
|
||||
"@dcloudio/uni-cli-shared": "^3.0.0-alpha-3041420220607001",
|
||||
"@dcloudio/vite-plugin-uni": "^3.0.0-alpha-3041420220607001",
|
||||
"@dcloudio/uni-automator": "^3.0.0-alpha-3041720220614001",
|
||||
"@dcloudio/uni-cli-shared": "^3.0.0-alpha-3041720220614001",
|
||||
"@dcloudio/vite-plugin-uni": "^3.0.0-alpha-3041720220614001",
|
||||
"@types/crypto-js": "^4.1.1",
|
||||
"@types/lodash-es": "^4.17.6",
|
||||
"@types/node": "^17.0.41",
|
||||
"@typescript-eslint/eslint-plugin": "^5.27.1",
|
||||
"@typescript-eslint/parser": "^5.27.1",
|
||||
"@types/node": "^17.0.42",
|
||||
"@typescript-eslint/eslint-plugin": "^5.28.0",
|
||||
"@typescript-eslint/parser": "^5.28.0",
|
||||
"eslint": "^8.17.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-prettier": "^4.0.0",
|
||||
"eslint-plugin-vue": "^9.1.0",
|
||||
"eslint-plugin-vue": "^9.1.1",
|
||||
"husky": "^8.0.1",
|
||||
"lint-staged": "^13.0.0",
|
||||
"lint-staged": "^13.0.1",
|
||||
"mrm": "^4.0.0",
|
||||
"postcss": "^8.4.14",
|
||||
"prettier": "^2.6.2",
|
||||
"sass": "^1.52.2",
|
||||
"prettier": "^2.7.0",
|
||||
"sass": "^1.52.3",
|
||||
"typescript": "^4.7.3",
|
||||
"vite": "^2.9.10",
|
||||
"vite": "^2.9.12",
|
||||
"vite-plugin-eslint": "^1.6.1",
|
||||
"vite-plugin-windicss": "^1.8.4"
|
||||
},
|
||||
|
897
pnpm-lock.yaml
generated
897
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
import { ConfigEnv, UserConfig } from 'vite';
|
||||
import uni from '@dcloudio/vite-plugin-uni';
|
||||
import eslintPlugin from 'vite-plugin-eslint';
|
||||
// import eslintPlugin from 'vite-plugin-eslint';
|
||||
import windicss from 'vite-plugin-windicss';
|
||||
import MiniProgramTailwind from '@dcasia/mini-program-tailwind-webpack-plugin/rollup';
|
||||
import { resolve } from 'path';
|
||||
@ -17,6 +17,15 @@ export default ({ mode }: ConfigEnv): UserConfig => {
|
||||
'@': resolve('./src'),
|
||||
},
|
||||
},
|
||||
build: {
|
||||
minify: 'terser',
|
||||
terserOptions: {
|
||||
compress: {
|
||||
// 发布时删除 console
|
||||
drop_console: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
server: {
|
||||
host: true,
|
||||
proxy: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user