当前位置:网站首页>Applet: uniapp solves vendor JS is too large
Applet: uniapp solves vendor JS is too large
2022-06-26 15:11:00 【[email protected]】
One 、 Introduction to the environment
uniapp + HBuilderX
Two 、 Problem description
Real machine debugging , Prompt package submitted too large , Cannot generate QR code , It is impossible to upload the code later

3、 ... and 、 Code package volume optimization
Code package volume optimization | Wechat open documents
3.1、 Static resources such as pictures are put on the server , The applet references the server file address ( More pictures will save a lot of volume ).
The project only retains the bottom navigation icon.
3.2、 Subcontracting is performed according to the business type ( The volume of a single package decreases rapidly after subcontracting ):
Use subcontracting | Wechat open documents
"optimization":{
"subPackages":true
}3.3、 Run time compression code ( The volume is reduced a lot , Test items are reduced 400 many kb)

Before compression :

After these steps, the code volume has reached :

Less than 2M, Code can already generate QR code preview 、 debugging 、 Upload the
3.4、 Check these :

3.5、 After checking this box, it will be passed :
manifest.json Configure on demand injection :
"lazyCodeLoading": "requiredComponents"After configuration, it passes

3.6、 One important point , Clean up useless code in time
Four 、 Welcome to communicate and correct , Pay attention to me , Learning together
5、 ... and 、 Reference link :
solve vendor.js Too big a problem _ LV Xiaoxian's Baba blog -CSDN Blog _vendor.js Too big
https://www.jb51.net/article/164542.htm
uni-app project vendor.js Too big to handle - Simple books
solve uni-app After compiling vendor.js File is too large.
How to solve uni-app After compiling vendor.js File is too large. / Sheng Rong Zhang
Applet performance optimization guide | Wechat open community
On demand injection and time-consuming injection | Wechat open documents
版权声明
本文为[[email protected]]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/177/202206261451357726.html
边栏推荐
- R language uses GLM function to build Poisson logarithm linear regression model, processes three-dimensional contingency table data to build saturation model, uses step function to realize stepwise re
- Unity C# 网络学习(十)——UnityWebRequest(二)
- 小程序:uniapp解决 vendor.js 体积过大的问题
- 15 BS object Node name Node name String get nested node content
- 网上找客户经理办理股票开户安全吗??
- Authoritative announcement on the recruitment of teachers in Yan'an University in 2022
- 10分钟了解BIM+GIS融合,常见BIM数据格式及特性
- R语言使用ggplot2可视化泊松回归模型(Poisson Regression)的结果、可视化不同参量组合下的计数结果
- R语言dplyr包summarise_at函数计算dataframe数据中多个数据列(通过向量指定)的均值和中位数、指定na.rm参数配置删除缺失值
- Deployment of kubernetes' controller
猜你喜欢

RestCloud ETL抽取动态库表数据实践

北京银行x华为:网络智能运维夯实数字化转型服务底座

【TcaplusDB知识库】TcaplusDB单据受理-创建业务介绍

TS common data types summary

How to load the contour CAD drawing of the engineering coordinate system obtained by the designer into the new earth

Mark: unity3d cannot select resources in the inspector, that is, project locking

Use abp Zero builds a third-party login module (I): Principles

关于 selenium.common.exceptions.WebDriverException: Message: An unknown server-side error 解决方案(已解决)

RestCloud ETL抽取動態庫錶數據實踐

【TcaplusDB知识库】TcaplusDB单据受理-建表审批介绍
随机推荐
Is it safe to open an online stock account? Somebody give me an answer
【TcaplusDB知识库】TcaplusDB系统用户组介绍
Common operation and Principle Exploration of stream
使用 Abp.Zero 搭建第三方登录模块(一):原理篇
Informatics Olympiad all in one 1400: count the number of words (string matching)
【TcaplusDB知识库】TcaplusDB单据受理-事务执行介绍
English grammar_ Adjective / adverb Level 3 - original sentence pattern
乐鑫 AWS IoT ExpressLink 模组达到通用可用性
1.会计基础--会计的几大要素(会计总论、会计科目和账户)
数据库-序列
Redis cluster messages
TS common data types summary
Kubernetes的pod
Restcloud ETL extracting dynamic library table data
One click GCC script installation
View触摸分析
TCP congestion control details | 1 summary
SAP sales data actual shipment data export sales
杜老师说网站更新图解
Optimizing for vectorization