当前位置:网站首页>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
边栏推荐
- Redis cluster re fragmentation and ask command
- Smoothing data using convolution
- One click analysis hardware /io/ national network performance script (strong push)
- The heavyweight white paper was released. Huawei continues to lead the new model of smart park construction in the future
- TS常用数据类型总结
- php文件上传00截断
- Optimizing for vectorization
- Redis-集群
- SAP 销售数据 实际发货数据导出 销量
- 券商经理给的开户二维码安全吗?找谁可以开户啊?
猜你喜欢
![[cloud native] codeless IVX editor programmable by](/img/10/7c56e46df69be6be522a477b00ec05.png)
[cloud native] codeless IVX editor programmable by "everyone"

刷题笔记(十九)--二叉树:二叉搜索树的修改与构造

【TcaplusDB知识库】TcaplusDB单据受理-建表审批介绍
Advanced operation of MySQL database basic SQL statement tutorial

程序分析与优化 - 8 寄存器分配

乐鑫 AWS IoT ExpressLink 模组达到通用可用性

qt下多个子控件信号槽绑定方法

Attention meets geometry: geometry guided spatiotemporal attention consistency self supervised monocular depth estimation

【 Native cloud】 Éditeur ivx Programmable par tout le monde

使用 Abp.Zero 搭建第三方登录模块(一):原理篇
随机推荐
设计人员拿到的工程坐标系等高线CAD图如何加载进图新地球
R语言dplyr包intersect函数获取在两个dataframe中都存在的数据行、获取两个dataframe交叉的数据行
Numpy basic use
TCP congestion control details | 1 summary
Talk about the RPA direction planning: stick to simple and valuable things for a long time
About selenium common. exceptions. Webdriverexception: message: an unknown server side error solution (resolved)
English grammar_ Adjective / adverb Level 3 - original sentence pattern
Informatics Olympiad all in one 1400: count the number of words (string matching)
Is it safe to open a stock account with the account manager online??
券商经理给的开户二维码安全吗?找谁可以开户啊?
使用 Abp.Zero 搭建第三方登录模块(二):服务端开发
MongoDB系列之Window环境部署配置
关于 selenium.common.exceptions.WebDriverException: Message: An unknown server-side error 解决方案(已解决)
There are so many vulnerabilities in tcp/ip protocol?
文献1
The DOTPLOT function in the epidisplay package of R language visualizes the frequency of data points in different intervals in the form of point graphs, specifies the grouping parameters with the by p
Optimizing for vectorization
子查询的使用
Redis事务与watch指令
R语言dplyr包bind_rows函数把两个dataframe数据的行纵向(竖直)合并起来、最终行数为原来两个dataframe行数的加和(Combine Data Frames)