cocos / cocos/cocos-cli

Cocos-cli打包后的引擎包体巨大,超过20M

Open
#440 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
430
Forks
154
Avg merge
2d 4h
Merged PRs (30d)
61

Description

使用cocos create 创建项目,然后使用Cocos-cli mcp工具生成游戏。
使用cocos build命令打包包体超过20M,{ debug: false} 如果不传超过30M
Image

同一个工程
使用cocos creator 3.8.8 打开,进行打包,只有3M

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by creating a project with cocos create, generating the game with the Cocos-cli MCP tool, and running cocos build with debug: false and without that option. Compare the resulting package sizes with the same project built in Cocos Creator 3.8.8; done means the CLI build no longer includes the excess engine content.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.