Tag

package optimization

1 views collected around this technical thread.

DeWu Technology
DeWu Technology
Jun 14, 2024 · Frontend Development

WeChat Mini Program Development Guide: Architecture, Packaging, Tools, and CI/CD

The guide explains how to build WeChat Mini Programs using a hybrid WebView‑JavaScript sandbox architecture, stay within 20 MB (2 MB per package) limits, organize code with main and sub‑packages, choose uni‑app or Taro, optimize assets, configure app.json, employ dev tools, automate builds and uploads with miniprogram‑ci, and monitor performance via WeAnalysis.

CI/CDFrontend DevelopmentWeChat Mini Program
0 likes · 16 min read
WeChat Mini Program Development Guide: Architecture, Packaging, Tools, and CI/CD
Baidu App Technology
Baidu App Technology
Jul 10, 2023 · Mobile Development

Baidu App iOS Package Size Optimization: Code Optimization Techniques

The article explains how Baidu App reduces its iOS package size by analyzing Link Map files and applying six code‑optimization techniques—unused class and module slimming, unused method pruning with LLVM, duplicate‑code detection, utility‑method consolidation, and A/B‑test hardening—yielding up to 8 MB of savings.

AB testingLink MapMach-O
0 likes · 15 min read
Baidu App iOS Package Size Optimization: Code Optimization Techniques
Ctrip Technology
Ctrip Technology
Jun 9, 2022 · Frontend Development

Ctrip Mini‑Program Size Governance and Main Package Management Mechanism

This article details Ctrip's comprehensive mini‑program size governance framework, covering size allocation, detection, application approval, reminders, statistics, and main‑package file management to ensure packages stay within WeChat's limits and improve launch performance.

CtripWeChatfrontend
0 likes · 9 min read
Ctrip Mini‑Program Size Governance and Main Package Management Mechanism
Didi Tech
Didi Tech
Mar 19, 2021 · Frontend Development

Package Size Control Practices in Didi Ride‑Hailing Mini Program

After moving its WeChat/Alipay entry to a Didi Ride‑Hailing mini‑program, the team kept the main bundle under the 2 MB limit by applying MPX‑based webpack tree‑shaking, minification, CDN‑compressed assets, aggressive sub‑package splitting and a lightweight cover page, reducing the core to about 1.1 MB while shifting most business logic into 800 KB–1.2 MB sub‑packages.

Didi Ride-HailingFront-End DevelopmentMPX Framework
0 likes · 14 min read
Package Size Control Practices in Didi Ride‑Hailing Mini Program
Tencent Cloud Developer
Tencent Cloud Developer
Jan 12, 2017 · Mobile Development

Using WeCOS to Reduce WeChat Mini Program Package Size

WeCOS is a command‑line tool that uploads a Mini Program’s local image assets to Tencent Cloud Object Storage, replaces the code’s image paths with COS URLs, removes the original files, and thus shrinks the package below the 1 MB upload limit, simplifying the otherwise manual process.

Node.jsTencent Cloud COSWeCOS
0 likes · 7 min read
Using WeCOS to Reduce WeChat Mini Program Package Size