peixue-dev/Archive/[一次性]清除编译缓存-datetime-picker错误-2026-01-31.bat

41 lines
893 B
Batchfile
Raw Normal View History

2026-02-28 17:26:03 +08:00
@echo off
echo ========================================
echo 清除 uni-app 编译缓存
echo ========================================
cd peidu\uniapp
echo.
echo [1/3] 删除 node_modules/.cache 目录...
if exist node_modules\.cache (
rmdir /s /q node_modules\.cache
echo 已删除 node_modules\.cache
) else (
echo node_modules\.cache 不存在,跳过
)
echo.
echo [2/3] 删除 unpackage 目录...
if exist unpackage (
rmdir /s /q unpackage
echo 已删除 unpackage
) else (
echo unpackage 不存在,跳过
)
echo.
echo [3/3] 删除 .hbuilderx 目录...
if exist .hbuilderx (
rmdir /s /q .hbuilderx
echo 已删除 .hbuilderx
) else (
echo .hbuilderx 不存在,跳过
)
echo.
echo ========================================
echo 缓存清除完成!
echo 请在 HBuilderX 中重新运行项目
echo ========================================
pause