# Upgrade to a Multiterminal Project

After the Mini Program project is upgraded to a multi-terminal project, it will not affect the original Mini Program project.The prerequisites for upgrading to a multi-terminal project, the steps to follow, and the changes to the project structure after the upgrade are described below.

# I. Preconditions

# 1, the developer tool version requirements

Download and install supportMultiterminal application modeOf the developer tools, the corresponding version requirements are as follows:

It is recommended to use the latest development version of the developer tools for multi-terminal application development and debugging

# 2, Mini Program account binding requirements

  • You need to bind the Mini Program to a multi-terminal application before you can upgrade the Mini Program project to a multi-terminal project
  • To create a multi-terminal application and bind a Mini Program to a multi-terminal application, the how-to guide can be viewed:Multiterminal application management

# II. Operational Steps

After binding the mini program account to the multi-terminal application, you can go to the WeChat developer tool to upgrade the mini program project to the multi-terminal project, the steps are as follows:

  • Create a project with an Mini Program account bound to a multiterminal application
  • to hitUpgrade to a Multiterminal Project, wait a moment to complete the project upgrade
  • Automatically switch to a multiterminal project after upgrading toMultiterminal application mode, developers can develop and debug multi-terminal applications in this mode
  • When the Mini Program is not bound to a multiterminal application, clickUpgrade Multiterminal ProjectsThe following prompt appears, at this point clickDebindingYou can quickly jump to the development platform for account binding
  • If the multi-terminal identity management service has been opened, for the convenience of developers to complete a keyMultiterminal identity management configuration, developers can check this configuration when upgrading a multi-terminal project

# III. Post-upgrade changes

After upgrading to a multi-terminal project, the changes to the native Mini Program project are as follows:

# Change 1: project.config.json

  • project.config.json Document setting Added a new field condition

    • The default value is true, indicates that conditional compilation is enabledIf for falseIndicates that conditional compilation is not enabled
    • Developer tools to support conditional compilation, multi-terminal application of the code does not occupy the small code package volume
  • project.config.json The file has added a field projectArchitecture

    • The default value is multiPlatform, represents a multi-terminal project

# Change 2: project.miniapagejson

  • Added project.miniapp.json File for the configuration of a multiterminal project project
  • Specific configurations can beClick for details

Other Instructions: If you have problems, you can go tocommunityFeedback, or contactLittle helperJoin the official technical exchange group for feedback