当前位置:网站首页>解决uniapp编译后vendor.js文件过大(官方处理方案)
解决uniapp编译后vendor.js文件过大(官方处理方案)
2022-07-21 05:08:00 【流情】
uni-app开发微信小程序,真机运行发布时工具提示vendor.js超过500KB,已经跳过es6向es5转换。通过资源管理器中的显示发现是vendor.js文件过大,有1M多。
在hbuilderx编译时不知你们是否有注意过这一段提示 :
因为我们是运行模式,所以没有进行压缩代码,体积较大。理论上而言,如果要发布代码我们可以直接通过hbuilderx的 发行-》小程序-微信 即可。这样就不会出现体积过大无法打包的情况。
话又说回来,我们就喜欢在程序开发工具里发布代码,有时也遇到进行真机运行,所以还是得解决这个问题。关于这点,hbuilderx官方也提示了。
https://uniapp.dcloud.io/matter?id=vendorjs过大的处理方式
边栏推荐
- Realization of serpentine digital lattice Write a cube function with the input parameter of num. the requirements are as follows through JS: when num=3, the output table effect is: [[1,2,3] [6,5,4] [7
- Typescript基础学习记录
- Vulnhub-dc-4 target penetration record
- First Working Day~
- 个人小程序:梦缘
- 大文件上传(以G为单位) js 部分
- 自定义获取请求参数类 GET POST
- 【好文记录】嵌入式框架Zorb Framework搭建过程
- 通过Web代理服务器实现文本文件传输至外部服务器并且修改后返回
- JS小数转百分比出现的精度问题以及解决方法
猜你喜欢
网页服务器/客户端搭建(nodejs启动exe程序)
22. [static member access format] class name:: access member, then the member needs to be static]
【极客大挑战 2019】Easy,Love,Baby-SQL
Using tailwind on Google browser, the button will have a blue background
Nvm、Nrm使用教程
BUUCTF n1book [第二章 web進階]文件上傳
Oh my Zsh efficiency plug-in
Koa2快速搭建服务器
qml 实现csdn搜索框,无规则圆角
thinkphp6使用EasyWeChat5.x之公众号开发(一)
随机推荐
TypeScript中的as unknown as xxx的用法及目的
宽字节注入学习记录
22. [static member access format] class name:: access member, then the member needs to be static]
Add, delete, modify and check~
边界层积分方程与马兰格尼效应
The significance of the column
Lazy loading of pictures
DWVA[SQL-Injection]学习记录
Buuctf [gxyctf2019] no dolls
VOF phase transition equation in openfoam
QML implements CSDN search box with irregular rounded corners
web安全--文件上传中间件解析漏洞
The most common throttling scenario is the pull-down refresh and pull-up load of uniapp
NPM related information
thinkphp5.1 利用 PHPMailer 发送邮件
php 提取字符串中的手机号并验证是否为 11 位
二维无粘流动雅可比特征系统的推导
The C language header stdio cannot be found after Xcode upgrade H solution
ecshop漏洞复现
PHP 大文件分块上传 底层实现