forked from 77media/video-flow
更新: 编译变量导入
This commit is contained in:
parent
a096d4a7bf
commit
e6a3916f66
@ -40,7 +40,7 @@ if [ "$current_branch" = "$BRANCH_NAME" ]; then
|
||||
|
||||
# 安装依赖并构建(通过 env-cmd 注入 .env.development 与 NODE_ENV)
|
||||
yarn install
|
||||
npx --yes env-cmd -f .env.development -e development bash -lc 'export NODE_ENV=development; yarn build'
|
||||
npx --yes env-cmd -f .env.development bash -lc 'export NODE_ENV=development; yarn build'
|
||||
|
||||
# 准备dist目录
|
||||
mkdir -p dist
|
||||
|
||||
@ -40,7 +40,7 @@ if [ "$current_branch" = "$BRANCH_NAME" ]; then
|
||||
|
||||
# 安装依赖并构建(通过 env-cmd 注入 .env.production 与 NODE_ENV)
|
||||
yarn install
|
||||
npx --yes env-cmd -f .env.production -e production bash -lc 'export NODE_ENV=production; yarn build'
|
||||
npx --yes env-cmd -f .env.production bash -lc 'export NODE_ENV=production; yarn build'
|
||||
|
||||
# 准备dist目录
|
||||
mkdir -p dist
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user