peixue-dev/Archive/[一次性]最终编译-所有图片网络化-2026-01-31.bat

29 lines
725 B
Batchfile
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
chcp 65001 >nul
echo ========================================
echo 重新编译小程序(所有图片已网络化)
echo ========================================
echo.
echo 已完成的优化:
echo ✓ button图片已改用网络地址减少约1.3MB
echo ✓ banner图片已改用网络地址减少约500KB
echo ✓ 图片压缩节省约894KB
echo.
echo 预计主包大小约3.1MB
echo 还需优化约1.1MB
echo.
echo 正在重新编译...
echo.
cd peidu\uniapp
call npm run dev:mp-weixin
cd ..\..
echo.
echo ========================================
echo 编译完成!
echo 请在微信开发者工具中查看实际主包大小
echo ========================================
pause