nginx-tutorial/examples/scripts/build-reactadmin.bat

23 lines
463 B
Batchfile
Raw Normal View History

2018-10-12 19:10:30 +08:00
@echo off
rem -------------------------------------------------
rem The script is use to package reactadmin
rem Env: Nodejs 8.x
rem -------------------------------------------------
pushd %~dp0..\reactadmin
echo ">>>> 1. Delete node_modules"
rd /s /q node_modules
echo ">>>> 2. npm install"
rem 安装本地依赖
2019-02-18 12:11:31 +08:00
call npm install
2018-10-12 19:10:30 +08:00
echo ">>>> 3. npm run prod"
rem 构建生产环境,构建的静态资源文件在 dist 目录
2019-02-18 12:11:31 +08:00
call npm run build
2018-10-12 19:10:30 +08:00
popd
pause