Project Configuration
Overview
Developers can create a project.config.json
in the root directory of the project, which can be used to implement compilation, development, and other related functions of the project.
Instructions for Use
MiniApp IDE version 0.11.0 and above.
Supported Attributes
Attribute | Type | Default Value | Description |
---|---|---|---|
scripts | Object | - | Configuration related to the pre-build script of the MiniApp. |
scripts
For scenarios involving pre-processing, a configuration entry for precompile
is provided, allowing users to execute pre-processing logic before compilation, preview, or upload. This logic will take effect in the IDE. The scripts
field accepts an object, the properties of which are detailed below.
Attribute | Type | Execution Timing |
---|---|---|
beforeCompile | String | Executed during IDE simulator compilation, and exits the beforeCompile process after execution. |
beforePreview | String | Executed before real device preview/real device debugging. |
beforeUpload | String | Executed before uploading in the IDE. |