# 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:

  1. wxs
  2. png
  3. jpg
  4. jpeg
  5. gif
  6. svg
  7. json
  8. cer
  9. mp3
  10. aac
  11. m4a
  12. mp4
  13. wav
  14. ogg
  15. silk
  16. wasm
  17. br
  18. cert