HomeDocs
Skip to main content

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

AttributeTypeDefault ValueDescription
scriptsObject-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.

AttributeTypeExecution Timing
beforeCompileStringExecuted during IDE simulator compilation, and exits the beforeCompile process after execution.
beforePreviewStringExecuted before real device preview/real device debugging.
beforeUploadStringExecuted before uploading in the IDE.
Privacy agreementDeveloper agreementcontact us: developer_service.mi@transsion.com © 2024 MiniApp. All Rights Reserved.