Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

taro-vue3 打包h5项目 分包过多,体积过大 #17212

Open
JayChou98 opened this issue Jan 22, 2025 · 0 comments
Open

taro-vue3 打包h5项目 分包过多,体积过大 #17212

JayChou98 opened this issue Jan 22, 2025 · 0 comments

Comments

@JayChou98
Copy link

相关平台

H5

复现仓库

https://gitee.com/cheesexz/moodiary.git
浏览器版本: chrome
使用框架: Vue 3

复现步骤

js/app.b6a21b14.3.1.4.1737539492846.js (1.09 MiB) js/6989.b6a21b14.3.1.4.1737539492846.js (1.36 MiB) js/4241.b6a21b14.3.1.4.1737539492846.js (1.18 MiB) js/8714.b6a21b14.3.1.4.1737539492846.js (1.1 MiB) js/3219.b6a21b14.3.1.4.1737539492846.js (1.1 MiB) js/3290.b6a21b14.3.1.4.1737539492846.js (265 KiB) js/5053.b6a21b14.3.1.4.1737539492846.js (296 KiB) js/6508.b6a21b14.3.1.4.1737539492846.js (1.24 MiB) js/9737.b6a21b14.3.1.4.1737539492846.js (1.23 MiB) js/5260.b6a21b14.3.1.4.1737539492846.js (1.23 MiB) js/2099.b6a21b14.3.1.4.1737539492846.js (1.3 MiB) js/1471.b6a21b14.3.1.4.1737539492846.js (1.24 MiB) js/7363.b6a21b14.3.1.4.1737539492846.js (1.28 MiB) js/5528.b6a21b14.3.1.4.1737539492846.js (1.25 MiB) js/7574.b6a21b14.3.1.4.1737539492846.js (1.29 MiB) js/162.b6a21b14.3.1.4.1737539492846.js (1.22 MiB) js/2272.b6a21b14.3.1.4.1737539492846.js (1.23 MiB) js/9983.b6a21b14.3.1.4.1737539492846.js (1.28 MiB) js/2064.b6a21b14.3.1.4.1737539492846.js (2.35 MiB) js/5288.b6a21b14.3.1.4.1737539492846.js (2.35 MiB) js/8827.b6a21b14.3.1.4.1737539492846.js (1.26 MiB) js/832.b6a21b14.3.1.4.1737539492846.js (1.6 MiB) js/9380.b6a21b14.3.1.4.1737539492846.js (1.57 MiB) js/9178.b6a21b14.3.1.4.1737539492846.js (1.58 MiB) js/1319.b6a21b14.3.1.4.1737539492846.js (1.22 MiB) js/2149.b6a21b14.3.1.4.1737539492846.js (1.35 MiB) js/9455.b6a21b14.3.1.4.1737539492846.js (1.26 MiB) js/5657.b6a21b14.3.1.4.1737539492846.js (1.1 MiB) js/700.b6a21b14.3.1.4.1737539492846.js (1.15 MiB) js/3848.b6a21b14.3.1.4.1737539492846.js (1.71 MiB) js/3138.b6a21b14.3.1.4.1737539492846.js (1.75 MiB) js/1616.b6a21b14.3.1.4.1737539492846.js (1.75 MiB) js/6824.b6a21b14.3.1.4.1737539492846.js (1.79 MiB) js/1994.b6a21b14.3.1.4.1737539492846.js (1.72 MiB) js/4506.b6a21b14.3.1.4.1737539492846.js (1.19 MiB) js/3708.b6a21b14.3.1.4.1737539492846.js (1.12 MiB) js/129.b6a21b14.3.1.4.1737539492846.js (1.17 MiB) js/4758.b6a21b14.3.1.4.1737539492846.js (3.37 MiB) js/7560.b6a21b14.3.1.4.1737539492846.js (366 KiB) js/219.b6a21b14.3.1.4.1737539492846.js (750 KiB) static/js/app-icon.js (685 KiB) static/js/mobile-vector.js (967 KiB)WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.Entrypoints: app (1.91 MiB) js/219.b6a21b14.3.1.4.1737539492846.js css/app.css js/app.b6a21b14.3.1.4.1737539492846.jswebpack 5.88.2 compiled with 2 warnings in 89287 ms

期望结果

体积变小

实际结果

体积很大

环境信息

 Taro CLI 3.6.32 environment info:
    System:
      OS: Windows 11 10.0.22631
    Binaries:
      Node: 20.0.0 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.22 - ~\AppData\Roaming\npm\yarn.CMD
      npm: 9.6.4 - C:\Program Files\nodejs\npm.CMD
    npmPackages:
      @tarojs/cli: 3.6.15 => 3.6.15
      @tarojs/components: 3.6.15 => 3.6.15
      @tarojs/helper: 3.6.15 => 3.6.15
      @tarojs/plugin-framework-react: ^3.6.25 => 3.6.28
      @tarojs/plugin-framework-vue3: 3.6.15 => 3.6.15
      @tarojs/plugin-html: 3.6.15 => 3.6.15
      @tarojs/plugin-platform-alipay: 3.6.15 => 3.6.15
      @tarojs/plugin-platform-h5: 3.6.15 => 3.6.15
      @tarojs/plugin-platform-jd: 3.6.15 => 3.6.15
      @tarojs/plugin-platform-qq: 3.6.15 => 3.6.15
      @tarojs/plugin-platform-swan: 3.6.15 => 3.6.15
      @tarojs/plugin-platform-tt: 3.6.15 => 3.6.15
      @tarojs/plugin-platform-weapp: 3.6.15 => 3.6.15
      @tarojs/runtime: 3.6.15 => 3.6.15
      @tarojs/shared: 3.6.15 => 3.6.15
      @tarojs/taro: 3.6.15 => 3.6.15
      @tarojs/taro-loader: 3.6.15 => 3.6.15
      @tarojs/webpack5-runner: 3.6.15 => 3.6.15
      babel-preset-taro: 3.6.15 => 3.6.15
      eslint-config-taro: 3.6.15 => 3.6.15


This was referenced Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant