From b1ae90209146875fdff72cbdf8af309d6f3833d7 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Fri, 29 Nov 2019 22:38:11 +0800 Subject: [PATCH] Update contributing guide [skip ci] --- .github/CONTRIBUTING.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 21f035f2..7444bcf4 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -16,6 +16,7 @@ - [Node.js](https://nodejs.org) - [Yarn](https://yarnpkg.com) - [Composer](https://getcomposer.org) +- [PowerShell Core](https://github.com/PowerShell/PowerShell#get-powershell) 然后执行以下命令来拉取代码: @@ -45,7 +46,9 @@ location ~* \w+\.hot-update\.json$ { } ``` -当 `APP_ENV` 为其它值时,您需要事先执行 `yarn build`。此命令将构建并压缩前端资源。通常用于生产环境。 +当 `APP_ENV` 为其它值时,您需要事先执行 `pwsh ./scripts/build.ps1`。此命令将构建并压缩前端资源。通常用于生产环境。 + +> 如果传递 `-Simple` 参数给 `build.ps1` 脚本,则只会运行 webpack 来编译代码,而不会复制首页背景以及生成 commit 信息。 ### 测试