creator 3D 1.20 构建打包后【cocos3d-js】是一个4M多的文件夹,并没压缩成一个js

是怎么回事?

怎么设置才能压缩成一个js文件?

创建一个空项目进行打包web-mobile会出黄色警告,怎么解决


点击log日志

2020/11/6 15:39-log:"// ---- 打包脚本 ----"
2020/11/6 15:39-debug:“Script package(null) has script:0/0(Project/Plugin)”
2020/11/6 15:39-debug:“Build project success!”
2020/11/6 15:39-debug:“Copy externalScripts success!”

2020/11/6 15:39-warn:"If you do not supply “output.name”, you may not be able to access the exports of an IIFE bundle."

2020/11/6 15:39-log:"// ---- 构建自动图集 ----"
2020/11/6 15:39-log:"// ---- 图片拷贝压缩任务 ----"

构建引擎
2020/11/6 15:40-log:"// ---- 从 suffixMap 生成 md5AssetsMap 到 settings ----"
2020/11/6 15:40-debug:“options.md5Cache is false.”
2020/11/6 15:40-debug:"// ---- web-mobile:(onBeforeCompressSettings) ----"

2020/11/6 15:40-warn:"Browserslist: caniuse-lite is outdated. Please run the following command: npx browserslist --update-db"

2020/11/6 15:40-debug:"// ---- web-mobile:(onBeforeCompressSettings) success ----"
2020/11/6 15:40-log:"// ---- 整理静态模板文件 ----"

这个我们在 1.2 上对于 web 平台设置了split,打包了所有引擎,后续版本已经改了

警告暂且忽略,后续版本修复

请问,我现在就想打包成压缩版本的js ,应该怎么做?4.6MB的体积真的吓死人了

不要勾选 debug,没有这么大的

谢谢,不过我最后选择 1.12版本打包压缩了

该主题在最后一个回复创建后14天后自动关闭。不再允许新的回复。