peixue-dev/Archive/[一次性]清除缓存重新编译-周反馈-2026-01-30.bat

35 lines
734 B
Batchfile

@echo off
echo ========================================
echo 清除小程序缓存并重新编译
echo ========================================
echo.
cd peidu\uniapp
echo [1/3] 清除 node_modules 缓存...
if exist node_modules\.cache (
rmdir /s /q node_modules\.cache
echo 缓存已清除
) else (
echo 缓存目录不存在,跳过
)
echo.
echo [2/3] 清除 unpackage 编译输出...
if exist unpackage (
rmdir /s /q unpackage
echo 编译输出已清除
) else (
echo 编译输出目录不存在,跳过
)
echo.
echo [3/3] 重新编译小程序...
call npm run dev:mp-weixin
echo.
echo ========================================
echo 编译完成!
echo ========================================
pause