tencent cloud

Tencent Cloud Super App as a Service

Release Notes and Announcements
Announcement: Tencent Cloud Mini Program Platform Renamed to Tencent Cloud Super App as a Service on January 2, 2025
Console Updates
Android SDK Updates
iOS SDK Updates
Flutter SDK Updates
IDE Updates
Base Library Updates
Product Introduction
Overview
Strengths
Use Cases
Purchase Guide
Billing Overview
Pay-As-You-Go Billing
Renewal Guide
Service Suspension Instructions
Getting Started
Plan Management
Overview
Console Account Management
Storage Configuration
Acceleration Configuration
Branding Configurations
Platform Features
Console Login
Users and Permission System
Mini Program Management
Mini Game Management
Superapp Management
Commercialization
Platform Management
User Management
Team Management
Operations Management
Security Center
Code Integration Guide
Getting Demo and SDK
Android
iOS
Flutter
Superapp Server
GUID Generation Rules
Mini Program Development Guide
Mini Program Introduction and Development Environment
Mini Program Code Composition
Guide
Framework
Components
API
Server Backend
JS SDK
Base Library
IDE Operation Instructions
Mini Game Development Guide
Guide
API
Server Backend
Practice Tutorial
Mini Program Login Practical Tutorial
Mini Program Subscription Message Practical Tutorial
Payment Practical Tutorial
Ad Integration Practical Tutorial
Mini Game Subscription Message Practical Tutorial
API Documentation
History
Introduction
API Category
Making API Requests
Operation Management APIs
User Management APIs
Team Management APIs
Sensitive API-Related APIs
Role Management APIs
Platform Management APIs
Other Console APIs
Mini Program or Mini Game APIs
Management-Sensitive APIs
Global Domain Management APIs
Superapp APIs
Data Types
Agreements
Service Level Agreement
Data Processing and Security Agreement
SDK Privacy Policy Module
SDK Data Processing and Security Agreement Module

Project Configuration

PDF
Focus Mode
Font Size
Last updated: 2025-03-20 18:01:55
The project.config.json file in the project root directory allows you to configure the project.
The project.config.json file is mainly used in mini programs to configure the behaviour and characteristics of the mini program development tool. This file allows developers to adjust some of the default settings of the development tool to better suit the development process and environment.

configuration item

attribute
type
describe
Path String
Specify the directory of the source code of the mini program (must be a relative path).
String
Compile type, default is miniprogram.
String
The appid of the project.
String
Project name
setting
Object
Project setting
String
Base library version
condition
Object
Conditional Compilation Configuration
Object
IDE mockAPI Configuration

miniprogramRoot

The directory of the mini program source code (needs to be a relative path).
{
"miniprogramRoot": "./src"
}

compileType

Compile type, defaults to miniprogram.
{
"compileType": "miniprogram"
}

[xxx]appid

The appId corresponding to the mini program on the product console, xxx represents the product name.
{
"[xxx]appid": "mpz5g4hpzd5p3k2l"
}

projectname

Project Title.
{
"projectname": "main-demo"
}

setting

You can specify the following settings for the compilation settings of the project.
The following fields can be found in Developer Tools > Details > Local Settings.

attribute
type
describe
es6
Boolean
Whether to enable es6 to es5 conversion
postcss
Boolean
Whether to auto-complete the style when uploading code
minified
Boolean
If or not the script file will be automatically compressed when uploading code.
uglifyFileName
Boolean
Protect code when uploading
urlCheck
Boolean
Whether to check secure domain name and TLS version and HTTPS certificate

libVersion

The version number of the base library currently in use.
{
"libVersion": "1.5.0"
}

condition

Corresponds to the conditional compilation information set on the IDE.

{
"condition": {
"miniprogram": {
"current": 0,
"list": [
{
"id": 0,
"name": "tab3",
"pathName": "page/extend/index",
"query": "",
"scene": null
},
{
"id": -1,
"name": "tab4",
"pathName": "page/extend/index",
"query": "name=1",
"scene": null
}
]
}
}
}

mockConfig

Configuration information that is automatically generated when the corresponding project mocks the API in the IDE debug panel.

{
"globalOpen": true,
"rules": [
{
"ruleName": "testApi",
"ruleId": "48b83a70-84fd-400d-b53d-097518cfa515",
"apiName": "invokeNativePlugin",
"enable": true,
"mockType": "API",
"returnType": "succ",
"resStr": "{\\n\\"name\\": 1,\\n\\"cvv\\": 2,\\n\\"ccdd\\": \\"c223344\\"\\n}",
"filterList": [
{
"propName": "api_name",
"propRegString": "testApi",
"matchType": "string"
},
{
"propName": "",
"propRegString": "",
"matchType": "string"
}
],
"verifyFail": false
}
]
}


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback