mirror of
https://github.com/sunniejs/vue-h5-template.git
synced 2025-04-05 19:42:08 +08:00
chore: 更新依赖
This commit is contained in:
parent
7daf3f49a0
commit
d768ec6c31
@ -3,3 +3,5 @@ VITE_USE_MOCK=true
|
||||
VITE_USE_ERUDA=false
|
||||
|
||||
VITE_USE_COMPRESS=true
|
||||
|
||||
VITE_USE_REPORT=false
|
@ -3,3 +3,5 @@ VITE_USE_MOCK=true
|
||||
VITE_USE_ERUDA=true
|
||||
|
||||
VITE_USE_COMPRESS=true
|
||||
|
||||
VITE_USE_REPORT=false
|
@ -1,5 +1,3 @@
|
||||
export const IsReport = process.env.REPORT;
|
||||
|
||||
export const API_BASE_URL = '';
|
||||
|
||||
export const MOCK_API_BASE_URL = '';
|
||||
|
@ -20,7 +20,7 @@ import { ConfigImageminPlugin } from './imagemin';
|
||||
import { ConfigVisualizerConfig } from './visualizer';
|
||||
|
||||
export function createVitePlugins(env: ViteEnv, isBuild: boolean) {
|
||||
const { VITE_USE_MOCK, VITE_USE_ERUDA, VITE_USE_COMPRESS } = env;
|
||||
const { VITE_USE_MOCK, VITE_USE_ERUDA, VITE_USE_COMPRESS, VITE_USE_REPORT } = env;
|
||||
|
||||
const vitePlugins: (PluginOption | PluginOption[])[] = [
|
||||
// vue支持
|
||||
@ -50,7 +50,7 @@ export function createVitePlugins(env: ViteEnv, isBuild: boolean) {
|
||||
VITE_USE_ERUDA && vitePlugins.push(ConfigEruda());
|
||||
|
||||
// rollup-plugin-visualizer
|
||||
vitePlugins.push(ConfigVisualizerConfig());
|
||||
VITE_USE_REPORT && vitePlugins.push(ConfigVisualizerConfig());
|
||||
|
||||
// vite-plugin-mock
|
||||
VITE_USE_MOCK && vitePlugins.push(ConfigMockPlugin(isBuild));
|
||||
|
@ -4,16 +4,12 @@
|
||||
*/
|
||||
|
||||
import visualizer from 'rollup-plugin-visualizer';
|
||||
import { IsReport } from '../../constant';
|
||||
|
||||
export function ConfigVisualizerConfig() {
|
||||
if (IsReport) {
|
||||
return visualizer({
|
||||
filename: './node_modules/.cache/visualizer/stats.html',
|
||||
open: true,
|
||||
gzipSize: true,
|
||||
brotliSize: true,
|
||||
});
|
||||
}
|
||||
return [];
|
||||
return visualizer({
|
||||
filename: './node_modules/.cache/visualizer/stats.html',
|
||||
open: true,
|
||||
gzipSize: true,
|
||||
brotliSize: true,
|
||||
}) as Plugin;
|
||||
}
|
||||
|
@ -17,8 +17,8 @@
|
||||
"commit": "git add . && git-cz"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nutui/nutui": "^4.0.3",
|
||||
"@varlet/ui": "^2.9.2",
|
||||
"@nutui/nutui": "^4.0.4",
|
||||
"@varlet/ui": "^2.9.3",
|
||||
"@vueuse/core": "9.13.0",
|
||||
"@vueuse/integrations": "9.13.0",
|
||||
"axios": "1.3.4",
|
||||
@ -27,7 +27,7 @@
|
||||
"pinia": "^2.0.33",
|
||||
"pinia-plugin-persistedstate": "^3.1.0",
|
||||
"universal-cookie": "^4.0.4",
|
||||
"vant": "^4.1.1",
|
||||
"vant": "^4.1.2",
|
||||
"vue": "^3.2.47",
|
||||
"vue-i18n": "^9.2.2",
|
||||
"vue-router": "^4.1.6"
|
||||
@ -65,7 +65,7 @@
|
||||
"stylelint-order": "^6.0.3",
|
||||
"terser": "^5.16.8",
|
||||
"typescript": "^5.0.2",
|
||||
"unplugin-auto-import": "^0.15.1",
|
||||
"unplugin-auto-import": "^0.15.2",
|
||||
"unplugin-vue-components": "^0.24.1",
|
||||
"vite": "^4.2.1",
|
||||
"vite-plugin-compression": "^0.5.1",
|
||||
|
3057
pnpm-lock.yaml
generated
3057
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
1
types/global.d.ts
vendored
1
types/global.d.ts
vendored
@ -49,6 +49,7 @@ declare global {
|
||||
VITE_USE_MOCK: Boolean;
|
||||
VITE_USE_ERUDA: Boolean;
|
||||
VITE_USE_COMPRESS: Boolean;
|
||||
VITE_USE_REPORT: Boolean;
|
||||
}
|
||||
|
||||
declare function parseInt(s: string | number, radix?: number): number;
|
||||
|
114
yarn.lock
114
yarn.lock
@ -1389,10 +1389,10 @@
|
||||
resolved "https://registry.yarnpkg.com/@nutui/icons-vue/-/icons-vue-0.0.26.tgz#ebec9f75c596c9fb80d1580fac4c66ecd05122cb"
|
||||
integrity sha512-BbTjfTshqszF7MpLarDldLLRs8f3xH6f/s+JB0METi09G78jJuQnZzGI7iEklWy7BS/ZFXud8S3a/1RAUbiKCA==
|
||||
|
||||
"@nutui/nutui@^4.0.3":
|
||||
version "4.0.3"
|
||||
resolved "https://registry.yarnpkg.com/@nutui/nutui/-/nutui-4.0.3.tgz#c87760063dc505ccea2cd3150dfc6386ecfa913b"
|
||||
integrity sha512-YgxafP2fqAU+wIK4yR+33LCVBDENd2HfsZeeaFnagP3qPyxYfSxButCOa+GGxzEcXtAA7SzyU64mZbpDBc9FYA==
|
||||
"@nutui/nutui@^4.0.4":
|
||||
version "4.0.4"
|
||||
resolved "https://registry.yarnpkg.com/@nutui/nutui/-/nutui-4.0.4.tgz#5d159433c2a0bfeed680dfe2418db1eddc6adf97"
|
||||
integrity sha512-6dHpHAOZem+oF2Y2CB2FKj7TgQu7nYnX1NfA82i/rsjK7KHFqzmSUiodANFSvglxAvCShAFXcgSOYUkmRK94bg==
|
||||
dependencies:
|
||||
"@nutui/icons-vue" "^0.0.26"
|
||||
sass "^1.50.0"
|
||||
@ -1687,34 +1687,34 @@
|
||||
resolved "https://registry.yarnpkg.com/@vant/use/-/use-1.5.1.tgz#bc5eb46d92d64e4261f0a9e31a040bdb3d8282b3"
|
||||
integrity sha512-Zxd7lDz/LliVYEQi3PR9a8CQa/kGCVzF0u9hqDMaTlgXlbG0wHMFPllrcG0ThR6bfs8xrYVuSFM9pJn6HSoUGQ==
|
||||
|
||||
"@varlet/icons@2.9.2":
|
||||
version "2.9.2"
|
||||
resolved "https://registry.yarnpkg.com/@varlet/icons/-/icons-2.9.2.tgz#6bf6d54b65f50cd30e084784c8cc6b37d7168508"
|
||||
integrity sha512-rixttfhTd3lJ793oXD1S86GU6YVsBNUVLXjoNPWZ5SWlulbOWCNa5kj7FyiwiXH+7gwoLFc9983nkwcj8FeB+g==
|
||||
"@varlet/icons@2.9.3":
|
||||
version "2.9.3"
|
||||
resolved "https://registry.yarnpkg.com/@varlet/icons/-/icons-2.9.3.tgz#93110ce39714f7f8cba9f0ffcc3028c5008e35ba"
|
||||
integrity sha512-ROZKWvYFy6vnPtIVhSfBQ1yEUrUMLV+mPi5dflXdyH3B0Io8dUZWUeRvEG52ceYBZHFo1ZBj5XJyAEu78NUv/Q==
|
||||
|
||||
"@varlet/shared@2.9.2":
|
||||
version "2.9.2"
|
||||
resolved "https://registry.yarnpkg.com/@varlet/shared/-/shared-2.9.2.tgz#e90cf5ba4d83453dfb0067f8cdd5bc19858cd092"
|
||||
integrity sha512-ci6iEHpK9ez4OCON8Cv+jBP2rkMn2gczFM3qPw1/LPjw+X/AqZM8uVm/pPQlVepvR12v8LSTJNOI8eLl0RZnWA==
|
||||
"@varlet/shared@2.9.3":
|
||||
version "2.9.3"
|
||||
resolved "https://registry.yarnpkg.com/@varlet/shared/-/shared-2.9.3.tgz#140cb0be0f3c51d3d9f07237e23fec0012188289"
|
||||
integrity sha512-2S8wRB2Dw5GZci14XTSuE0o4xSOQOlGJ7YU27vLPNAA4qszdUJY8uh/0FvskGjIq72j8NUIip+QN8TqinmCZ3g==
|
||||
|
||||
"@varlet/ui@^2.9.2":
|
||||
version "2.9.2"
|
||||
resolved "https://registry.yarnpkg.com/@varlet/ui/-/ui-2.9.2.tgz#13c06dc5cecc90b85b0175bddba9cc702ee8b2e7"
|
||||
integrity sha512-/b+5Ia4h794yyYA6L7+xY2zLtPS+hm2h/aAzpPRdg3/W0sXYgodoYZ99LOAg06kDZCzmBRxRFkh8izuRE58OWA==
|
||||
"@varlet/ui@^2.9.3":
|
||||
version "2.9.3"
|
||||
resolved "https://registry.yarnpkg.com/@varlet/ui/-/ui-2.9.3.tgz#897e99212c6b134289df154c6ed37b060a8b8545"
|
||||
integrity sha512-C10dV7YCqHPZa3Ixn0EfSixNipFJpBtyQNs+LgsXPuBSqa/kC/4uUM+sNf0qZCsSAMh9Nl1ejtL+fVuWuT2MeQ==
|
||||
dependencies:
|
||||
"@popperjs/core" "^2.11.6"
|
||||
"@varlet/icons" "2.9.2"
|
||||
"@varlet/shared" "2.9.2"
|
||||
"@varlet/use" "2.9.2"
|
||||
"@varlet/icons" "2.9.3"
|
||||
"@varlet/shared" "2.9.3"
|
||||
"@varlet/use" "2.9.3"
|
||||
dayjs "^1.10.4"
|
||||
decimal.js "^10.2.1"
|
||||
|
||||
"@varlet/use@2.9.2":
|
||||
version "2.9.2"
|
||||
resolved "https://registry.yarnpkg.com/@varlet/use/-/use-2.9.2.tgz#0c3b455e9deb0d7d740c547fb7c3946bd58616e4"
|
||||
integrity sha512-0bpkgOHN6EfEEe84qNJ1tQUEJ3yww9egSxzM+F8Yirsvu7i+OTjT39zLHPwwpcWmeCZ6YOLN5a5FJCp+CyZOeA==
|
||||
"@varlet/use@2.9.3":
|
||||
version "2.9.3"
|
||||
resolved "https://registry.yarnpkg.com/@varlet/use/-/use-2.9.3.tgz#8a2adf2fa018d6a69bfcdb7f490aab5fe1f5f9bc"
|
||||
integrity sha512-WWWj9tsC1Vl2XPxQktuuvYv5PHP5fooIBuGO7yDWTRWSbyTkn34SPcXKaryuGv0O2wpDf2KOE27qWOlTGMAUIQ==
|
||||
dependencies:
|
||||
"@varlet/shared" "2.9.2"
|
||||
"@varlet/shared" "2.9.3"
|
||||
|
||||
"@vitejs/plugin-legacy@^4.0.2":
|
||||
version "4.0.2"
|
||||
@ -5575,6 +5575,13 @@ minimatch@^7.4.2:
|
||||
dependencies:
|
||||
brace-expansion "^2.0.1"
|
||||
|
||||
minimatch@^7.4.3:
|
||||
version "7.4.3"
|
||||
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-7.4.3.tgz#012cbf110a65134bb354ae9773b55256cdb045a2"
|
||||
integrity sha512-5UB4yYusDtkRPbRiy1cqZ1IpGNcJCGlEMG17RKzPddpyiPKoCdwohbED8g4QXT0ewCt8LTkQXuljsUfQ3FKM4A==
|
||||
dependencies:
|
||||
brace-expansion "^2.0.1"
|
||||
|
||||
minimist-options@4.1.0:
|
||||
version "4.1.0"
|
||||
resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-4.1.0.tgz#c0655713c53a8a2ebd77ffa247d342c40f010619"
|
||||
@ -5622,6 +5629,16 @@ mlly@^1.1.1:
|
||||
pkg-types "^1.0.1"
|
||||
ufo "^1.1.0"
|
||||
|
||||
mlly@^1.2.0:
|
||||
version "1.2.0"
|
||||
resolved "https://registry.yarnpkg.com/mlly/-/mlly-1.2.0.tgz#f0f6c2fc8d2d12ea6907cd869066689b5031b613"
|
||||
integrity sha512-+c7A3CV0KGdKcylsI6khWyts/CYrGTrRVo4R/I7u/cUsy0Conxa6LUhiEzVKIw14lc2L5aiO4+SeVe4TeGRKww==
|
||||
dependencies:
|
||||
acorn "^8.8.2"
|
||||
pathe "^1.1.0"
|
||||
pkg-types "^1.0.2"
|
||||
ufo "^1.1.1"
|
||||
|
||||
mockjs@^1.1.0:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/mockjs/-/mockjs-1.1.0.tgz#e6a0c378e91906dbaff20911cc0273b3c7d75b06"
|
||||
@ -7514,6 +7531,11 @@ ufo@^1.1.0:
|
||||
resolved "https://registry.yarnpkg.com/ufo/-/ufo-1.1.0.tgz#a5c4c814b0a98f7e0ca42c478688663fd3e3c037"
|
||||
integrity sha512-LQc2s/ZDMaCN3QLpa+uzHUOQ7SdV0qgv3VBXOolQGXTaaZpIur6PwUclF5nN2hNkiTRcUugXd1zFOW3FLJ135Q==
|
||||
|
||||
ufo@^1.1.1:
|
||||
version "1.1.1"
|
||||
resolved "https://registry.yarnpkg.com/ufo/-/ufo-1.1.1.tgz#e70265e7152f3aba425bd013d150b2cdf4056d7c"
|
||||
integrity sha512-MvlCc4GHrmZdAllBc0iUDowff36Q9Ndw/UzqmEKyrfSzokTd9ZCy1i+IIk5hrYKkjoYVQyNbrw7/F8XJ2rEwTg==
|
||||
|
||||
unbzip2-stream@^1.0.9:
|
||||
version "1.4.3"
|
||||
resolved "https://registry.yarnpkg.com/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz#b0da04c4371311df771cdc215e87f2130991ace7"
|
||||
@ -7545,22 +7567,22 @@ unicode-property-aliases-ecmascript@^2.0.0:
|
||||
resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz#43d41e3be698bd493ef911077c9b131f827e8ccd"
|
||||
integrity sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==
|
||||
|
||||
unimport@^3.0.2:
|
||||
version "3.0.2"
|
||||
resolved "https://registry.yarnpkg.com/unimport/-/unimport-3.0.2.tgz#c7016df38775e03c4bc7682b0194c98236e308db"
|
||||
integrity sha512-OQ0hShpcerS1PSsISsyn/NV2dGe5xfdUn4p5nwOodq0iqq5xxYQrTidHqlFGjxIliPDtDJp80OeySzyPTjYHmA==
|
||||
unimport@^3.0.3:
|
||||
version "3.0.4"
|
||||
resolved "https://registry.yarnpkg.com/unimport/-/unimport-3.0.4.tgz#b54d414b0f78673e76c9cbc2568b915c2d64b7c9"
|
||||
integrity sha512-eoof/HLiNJcIkVpnqc7sJbzKSLx39J6xTaP7E4ElgVQKeq2t9fPTkvJKcA55IJTaRPkEkDq8kcc/IZPmrypnFg==
|
||||
dependencies:
|
||||
"@rollup/pluginutils" "^5.0.2"
|
||||
escape-string-regexp "^5.0.0"
|
||||
fast-glob "^3.2.12"
|
||||
local-pkg "^0.4.3"
|
||||
magic-string "^0.30.0"
|
||||
mlly "^1.1.1"
|
||||
mlly "^1.2.0"
|
||||
pathe "^1.1.0"
|
||||
pkg-types "^1.0.2"
|
||||
scule "^1.0.0"
|
||||
strip-literal "^1.0.1"
|
||||
unplugin "^1.1.0"
|
||||
unplugin "^1.3.1"
|
||||
|
||||
union-value@^1.0.0:
|
||||
version "1.0.1"
|
||||
@ -7590,18 +7612,18 @@ unpipe@~1.0.0:
|
||||
resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"
|
||||
integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==
|
||||
|
||||
unplugin-auto-import@^0.15.1:
|
||||
version "0.15.1"
|
||||
resolved "https://registry.yarnpkg.com/unplugin-auto-import/-/unplugin-auto-import-0.15.1.tgz#c7f1c01ad8676231c3711ca7bbf56dd5339586a2"
|
||||
integrity sha512-xLS+BfVNy00Y3IkqBmEd0IThvjx8kSGIgSuf/1kETttiENK8sHrDA+poKkQxRCPTKYH4yWM6txGQANPTzwpUWQ==
|
||||
unplugin-auto-import@^0.15.2:
|
||||
version "0.15.2"
|
||||
resolved "https://registry.yarnpkg.com/unplugin-auto-import/-/unplugin-auto-import-0.15.2.tgz#e0eaaa45a64192eaa0f03b993a4a773ddbf82f3b"
|
||||
integrity sha512-Wivfu+xccgvEZG8QtZcIvt6napfX9wyOFqM//7FHOtev8+k+dp3ykiqsEl6TODgHmqTTBeQX4Ah1JvRgUNjlkg==
|
||||
dependencies:
|
||||
"@antfu/utils" "^0.7.2"
|
||||
"@rollup/pluginutils" "^5.0.2"
|
||||
local-pkg "^0.4.3"
|
||||
magic-string "^0.30.0"
|
||||
minimatch "^7.4.2"
|
||||
unimport "^3.0.2"
|
||||
unplugin "^1.1.0"
|
||||
minimatch "^7.4.3"
|
||||
unimport "^3.0.3"
|
||||
unplugin "^1.3.1"
|
||||
|
||||
unplugin-vue-components@^0.24.1:
|
||||
version "0.24.1"
|
||||
@ -7629,6 +7651,16 @@ unplugin@^1.1.0:
|
||||
webpack-sources "^3.2.3"
|
||||
webpack-virtual-modules "^0.5.0"
|
||||
|
||||
unplugin@^1.3.1:
|
||||
version "1.3.1"
|
||||
resolved "https://registry.yarnpkg.com/unplugin/-/unplugin-1.3.1.tgz#7af993ba8695d17d61b0845718380caf6af5109f"
|
||||
integrity sha512-h4uUTIvFBQRxUKS2Wjys6ivoeofGhxzTe2sRWlooyjHXVttcVfV/JiavNd3d4+jty0SVV0dxGw9AkY9MwiaCEw==
|
||||
dependencies:
|
||||
acorn "^8.8.2"
|
||||
chokidar "^3.5.3"
|
||||
webpack-sources "^3.2.3"
|
||||
webpack-virtual-modules "^0.5.0"
|
||||
|
||||
unset-value@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559"
|
||||
@ -7709,10 +7741,10 @@ validate-npm-package-license@^3.0.1:
|
||||
spdx-correct "^3.0.0"
|
||||
spdx-expression-parse "^3.0.0"
|
||||
|
||||
vant@^4.1.1:
|
||||
version "4.1.1"
|
||||
resolved "https://registry.yarnpkg.com/vant/-/vant-4.1.1.tgz#29a23b1c4aa4c03907e741f722082028bfa8742c"
|
||||
integrity sha512-xCQ/ERLak8+z1avIEZZzIoyvOVs+3JTWH2VjIZ9K8+LFJMghHRnYwkjS4G0qjb6QXwM5CyudjjwG48reNMXxEQ==
|
||||
vant@^4.1.2:
|
||||
version "4.1.2"
|
||||
resolved "https://registry.yarnpkg.com/vant/-/vant-4.1.2.tgz#080fd7cdd2e0af80bcd105949b0b4c390083cac0"
|
||||
integrity sha512-iRUYBR5zDbs7O0UTxauyW/0XbJoE0g/eHipn0y3QxXeazdmNiaV0kGbBKRJ8vE/7p74zila/O5LzDiYbPDDN7Q==
|
||||
dependencies:
|
||||
"@vant/popperjs" "^1.3.0"
|
||||
"@vant/use" "^1.5.1"
|
||||
|
Loading…
x
Reference in New Issue
Block a user