diff --git a/compile_dev.sh b/compile_dev.sh index 844878d..1dc7d07 100755 --- a/compile_dev.sh +++ b/compile_dev.sh @@ -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 diff --git a/compile_prod.sh b/compile_prod.sh index 17a6d8a..5cb6d9c 100755 --- a/compile_prod.sh +++ b/compile_prod.sh @@ -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