peixue-dev/Archive/[一次性]清除缓存重新编译-线上督学-2026-01-31.bat

39 lines
986 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 日期2026-01-31
echo ========================================
echo.
cd /d "%~dp0..\peidu\uniapp"
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] 清除完成!
echo.
echo ========================================
echo 请在 HBuilderX 中:
echo 1. 点击"运行""运行到小程序模拟器""微信开发者工具"
echo 2. 在微信开发者工具中点击"清缓存""全部清除"
echo 3. 重新编译运行
echo ========================================
echo.
pause