# Directory structure
Weixin Mini Program contains anappthat describes the whole program and multiple that describe the respective pages. page`。
A Weixin Mini Program body consists of three files that must be placed in the root directory of the project, as follows:
| file | essential | Effect |
|---|---|---|
| app.js | yes | Weixin Mini Program Logic |
| app.json | yes | Weixin Mini Program Public configuration |
| app.wxss | no | Weixin Mini Program Common Style Sheet |
A Weixin Mini Program page consists of four files, which are:
| File Type | essential | Effect |
|---|---|---|
| js | yes | Page Logic |
| wxml | yes | Page structure |
| json | no | Page configuration |
| wxss | no | Page Style Sheet |
Note: To make it easier for developers to reduce configuration items, the four files describing the page must have the same path and file name.
# Files allowed to be uploaded
In the project directory, the following files are compiled so they cannot be directly accessible after uploading:.js, apagejson,.wxml, *.wxss (where the wxml and wxss files are only for pages configured in apagejson).In addition, only files with a whitelist suffix can be uploaded, and files that are not on the whitelist can be accessed in the development tool but cannot be uploaded. The specific white list is as follows:
- wxs
- png
- jpg
- jpeg
- gif
- svg
- json
- cer
- mp3
- aac
- m4a
- mp4
- wav
- ogg
- silk
- wasm
- br
- cert