@echo off chcp 65001 >nul echo ============================================ echo webpackup echo ============================================ cd /d "%~dp0" echo [1/3] install dependences... call npm install if %errorlevel% neq 0 ( echo intall dependences fail! exit /b 1 ) echo [2/3] build web... call npm run build if %errorlevel% neq 0 ( echo build fail! exit /b 1 ) echo [3/3] success echo. echo ============================================ echo packup success! echo ============================================ echo.