Summary of uniapp project practice (23) Web page and small program application packaging tutorial

Introduction: After your application is developed, it needs to be packaged before publishing it to the Internet, including packaging on the web page and mini program.

Table of contents

  • Preparation
  • Web page packaging
  • Mini program packaging

Preparation

Before packaging, please ensure that your uniapp application can run normally after compiling it to a web page and mini program.

Web page packaging

After writing the application, if you need to package it to the web platform, you can select the current project root directory:

  • After finding the release menu on the top menu bar and clicking on it;
  • Find the **Website-PC Web or Mobile H5 (uni-app only)** submenu;
  • Click to add website title and domain name later;
  • Click Release to start packaging;
    Insert image description here

After packaging, { {根目录}}\unpackage\dist\build\h5generate it in the directory and upload the server deployment website according to your own needs.
Insert image description here

Mini program packaging

After writing the application, if you need to package it into the WeChat mini program platform, you can select the current project root directory:

  • After finding the release menu on the top menu bar and clicking on it;
  • Find the mini program you want to package, such as the mini program-WeChat (uni-app only) submenu;
  • Click to add the mini program title and mini program AppId.
  • Click Release to start packaging.

Insert image description here

After packaging { {根目录}}\unpackage\dist\build\mp-weixin, generate it in the directory. Open the WeChat developer tools according to your own needs, import the project, and click the upload button in the upper right corner to submit it for WeChat review.
Insert image description here
Insert image description here

at last

The above is the main content of packaging applications into web pages and small programs. If there are any shortcomings, please correct me.

Guess you like

Origin blog.csdn.net/fed_guanqi/article/details/133322772