当前位置:网站首页>解决The code generator has deoptimised the styling of xxxx.js as it exceeds the max of 500kb
解决The code generator has deoptimised the styling of xxxx.js as it exceeds the max of 500kb
2022-07-01 06:24:00 【木屋x】
解决The code generator has deoptimised the styling of xxxx.js as it exceeds the max of 500kb
1.需求背景
- 最近在vue项目引用了一个js文件,由于这个文件的大小超过了500kb,因此在打包的时候抛了一个错:
The code generator has deoptimised the styling of xxxx.js as it exceeds the max of 500kb。
解决方案
这个问题其实就是babel处理文件的大小被限制在了500kb,解决如下:
// 在项目根目录下查找 .babelrc 或 babel.config.js 文件,如果没有就创建一个(两者其一即可),配置如下: // .babelrc: { "compact": false } // babel.config.js: module.exports = { compact: false, }解决。
边栏推荐
- 基金定投是高风险产品吗?
- Tidb single machine simulation deployment production environment cluster (closed pit practice, personal test is effective)
- Uniapp tree level selector
- [ManageEngine Zhuohao] helps Julia college, the world's top Conservatory of music, improve terminal security
- What are the functions of LAN monitoring software
- Treasure taking from underground palace (memory based deep search)
- 连续四年入选Gartner魔力象限,ManageEngine卓豪是如何做到的?
- libpng12.so. 0: cannot open shared object file: no such file or directory
- C language course set up salary management system (big homework)
- C language course set up library information management system (big homework)
猜你喜欢

Distributed lock implementation

浅谈SIEM

C语言课设学生考勤系统(大作业)

虚幻 简单的屏幕雨滴后处理效果

Tidb single machine simulation deployment production environment cluster (closed pit practice, personal test is effective)

手把手教你实现一个深度学习框架...

C语言课设物业费管理系统(大作业)

C language course set up salary management system (big homework)

Promise

C语言课设学生信息管理系统(大作业)
随机推荐
启牛学堂合作的证券公司是哪家?开户安全吗?
Pychart configuring jupyter
B-树系列
端口扫描工具是什么?端口扫描工具有什么用
1034 Head of a Gang
伪装请求头库: anti-useragent
【ITSM】什么是ITSM,IT部门为什么需要ITSM
C语言课设物业费管理系统(大作业)
[ITSM] what is ITSM and why does it department need ITSM
【ManageEngine卓豪】网络运维管理是什么,网络运维平台有什么用
阶乘约数(唯一分解定理)
Dongle data collection
三分钟带你快速了解网站开发的整个流程
HCM Beginner (III) - quickly enter pa70 and pa71 to browse employee information PA10
lxml模块(数据提取)
Uniapp tree level selector
webapck打包原理--启动过程分析
JMM details
C语言课设工资管理系统(大作业)
Movable mechanical wall clock