If the preview of your miniapp meets your expectations, you can use Visual Studio Code to package and build the miniapp and use Application Open Platform to publish the miniapp. This topic describes how to package, build, and publish your miniapp.
Click Publish Miniapp. The extension automatically calls the server API, calculates the latest version number of the miniapp based on the return value of the API, and then updates it to
package.json
. The following figure shows how to publish a miniapp.The system automatically runs the
npm run build
command to package the miniapp project. After the miniapp project is packaged, the build artifact is automatically compressed. Then, the compressed artifact package is uploaded and published. After the miniapp is published, the following message is displayed.NoteThe default storage path for the build artifact is
dist
. The storage path can be configured in the extension.