# Code package
# Version Type
The code package is divided into three types: Development Version, Experience Version, and Official Version:
-Development version: The version generated by each developer clicking "Preview" during the development process. Each mini game can have multiple development versions, and each developer can only have one local development version; development version The code package can only be obtained by scanning the code; -Experimental version: The version obtained by setting the specific development version to the experimental version in the management background, each mini game can only have one trial version; -Official version: The online version is officially released, and each mini game can only have one official version;
# Package size limit
The total size of the code package cannot exceed 30M, the size of a single subpackage is not limited, and the main package does not exceed 4M. For more information about subpackages, please refer to Subpackage Loading.
# Cache and cleanup mechanism
After the code package is downloaded to the client, it will be cached so that it can be opened offline next time. The timing of the code package cleaning is dynamically calculated by the algorithm, but it can be considered that the code package will not be actively cleaned up when the phone storage space is sufficient. When the user actively deletes the mini game in the history list (dropping down the taskbar does not count), the code package will be cleaned up.
# file type
In the project directory, the following files will be compiled, so they cannot be directly accessed after uploading: *.js, game.json. In addition, only files with suffixes in the whitelist can be uploaded, and files not in the whitelist can be accessed in the development tool, but cannot be uploaded. The specific whitelist list is as follows:
- png
- jpg
- jpeg
- gif
- svg
- js
- json
- cer
- obj
- dae
- fbx
- mtl
- stl
- 3ds
- mp3
- pvr
- wav
- plist
- ttf
- fnt
- gz
- ccz
- m4a
- mp4
- bmp
- atlas
- swf
- ani
- part
- proto
- bin
- sk
- mipmaps
- txt
- zip
- tt
- map
- ogg
- silk
- dbbin
- dbmv
- etc
- lmat
- lm
- ls
- lh
- lani
- lav
- lsani
- ltc
- aac
- astc
- br
- csv
- cur
- dat
- dds
- glb
- gltf
- ico
- ktx
- lmani
- lml
- pkm
- prefab
- scene
- skel
- wasm
- xml