Applet Directory Structure
The applet contains an app that describes the entire program and multiple pages that describe their respective pages.
- The main part of a applet consists of three files, which must be placed in the root directory of the project, as follows
File type
Required
Function
app.js
Yes
Mini program logic
app.json
Yes
Mini program common configuration
app.wxss
No
Mini program common style
- A mini program page consists of four files, namely:
File type
Required
Function
js
Yes
Page logic
wxml
Yes
Page structure
json
No
Page Configuration
wxss
No
Page style sheet
TIP
In order to facilitate 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 will be compiled, so they cannot be directly accessed after uploading: .js, app.json, .wxml, *.wxss (wxml and wxss files are only for pages configured in app.json) In addition, only files with suffixes in the whitelist can be uploaded. Files not in the whitelist can be accessed in the development tool, but cannot be uploaded. The specific whitelist list is as follows:
- wxs
- png
- jpg
- jpeg
- gif
- svg
- json
- cer
- mp3
- aac
- m4a
- mp4
- wav
- ogg
- silk
- wasm
- br
- cert