24 lines
500 B
Batchfile
24 lines
500 B
Batchfile
@echo off
|
|
chcp 65001 >nul
|
|
cd /d "%~dp0peidu\uniapp"
|
|
|
|
echo 正在清除缓存...
|
|
taskkill /F /IM node.exe 2>nul
|
|
timeout /t 2 /nobreak >nul
|
|
|
|
if exist "dist" rmdir /s /q "dist"
|
|
if exist "unpackage" rmdir /s /q "unpackage"
|
|
if exist "node_modules\.cache" rmdir /s /q "node_modules\.cache"
|
|
|
|
echo.
|
|
echo 正在重新编译...
|
|
call npm run dev:mp-weixin
|
|
|
|
echo.
|
|
echo 完成!现在:
|
|
echo 1. 打开微信开发者工具
|
|
echo 2. 点击"工具"-"清除缓存"-"清除全部"
|
|
echo 3. 点击"编译"
|
|
echo.
|
|
pause
|