初始化2
This commit is contained in:
29
web/build.bat
Normal file
29
web/build.bat
Normal file
@@ -0,0 +1,29 @@
|
||||
@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.
|
||||
|
||||
Reference in New Issue
Block a user