Cocos Creator Projects Keep Arriving as 1GB Zips — Here's What to Strip Out
Cocos Creator's auto-generated directories routinely inflate project shares to hundreds of megabytes, slowing collaboration and clogging transfer channels. Knowing which folders are disposable — and having a one-click tool to strip them — turns a recurring friction point into a non-issue.
The only directories another developer needs to open a Cocos Creator 3.x project are `assets/` and `package.json`. Everything else — `library/`, `temp/`, `local/`, `build/`, and `node_modules/` — is regenerated by the editor on first launch. Packing those folders turns a small source project into a multi-hundred-megabyte download that wastes time and bandwidth.
A new editor extension automates the cleanup. It reads the open project path, walks only a whitelist of essential directories, skips excluded folder names during recursive zipping, and writes a `{ProjectName}-min.zip` archive. The result drops a 1GB package down to a few dozen megabytes that can be shared over messaging apps.
Installation is a single folder drop into the user-level built-in extensions path (`%USERPROFILE%\.CocosCreator\builtin-extensions\3.8.7\export-min-project`), making the one-click export available across all 3.8.7 projects without per-project copying.
Many Cocos developers treat the entire project folder as source, unaware that the editor regenerates most of it — a knowledge gap that produces routine 1GB shares for what should be 50MB transfers.
The extension's whitelist-based zipping is a safer design than deletion-based cleanup because it cannot accidentally remove `assets/` or `package.json`.
Placing the extension in the user-level built-in extensions directory rather than per-project is a deliberate choice that reduces maintenance overhead across multiple projects.