HomeDocs
Skip to main content

MiniApp package size optimization tool

The "MiniApp Package Size Optimization Tool" aims to help developers optimize the package size of MiniApps. The tool currently offers the following features: compressing image resources, uploading images to OSS, and replacing local image resource paths in the MiniApp code with the paths of the compressed or OSS-uploaded image resources.

Basic usage

The entry point for the MiniApp Package Size Optimization Tool is located in the right area of the TopBar in the IDE.

Entry point for the MiniApp Package Size Optimization Tool

Clicking the "MiniApp Package Size Optimization" button will open the optimization tool interface in the IDE's editing area.

Interface of the MiniApp Package Size Optimization Tool

After completing the optimization parameter settings, click the "Start Optimization" button. The optimization tool will then optimize the MiniApp project code. Upon completion, the optimization records will be displayed in the lower area.

Optimization results of the MiniApp Package Size Optimization Tool

Clicking the "Restore" button in the optimization records can revert the MiniApp code to its state before optimization. If the optimization encounters any issues, you can click the "Retry" button to retry the failed optimization tasks.

Privacy agreementDeveloper agreementcontact us: developer_service.mi@transsion.com © 2024 MiniApp. All Rights Reserved.