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

h5 模板项目打包后 vendors.js(999KB) 体积过大 #16854

Open
BuptStEve opened this issue Nov 12, 2024 · 0 comments
Open

h5 模板项目打包后 vendors.js(999KB) 体积过大 #16854

BuptStEve opened this issue Nov 12, 2024 · 0 comments

Comments

@BuptStEve
Copy link

重现步骤

pnpx @tarojs/cli@latest init taro-demo

vite + vue3 + pinia 模板

npm run build:h5

> taro build --type h5

👽 Taro v4.0.7

vite v4.5.5 building for production...
✓ 631 modules transformed.
../dist/index.html                  1.14 kB │ gzip:   0.63 kB
../dist/css/index.9c2f8223.css      0.09 kB │ gzip:   0.10 kB
../dist/css/vendors.6d01e333.css    8.29 kB │ gzip:   3.97 kB
../dist/js/index.13e17cf7.js        0.88 kB │ gzip:   0.49 kB
../dist/js/app.202449ac.js          1.77 kB │ gzip:   0.98 kB
../dist/js/vendors.4a37af56.js    999.09 kB │ gzip: 298.98 kB
✓ built in 12.41s

相比之下 uniapp 的 h5 打包最大 js 才 100 多 KB

This was referenced Nov 16, 2024
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