From 94774e706ab4c4cfe30536880081a383494e8b09 Mon Sep 17 00:00:00 2001 From: ThomasTan2002 <166674253+ThomasTan2002@users.noreply.github.com> Date: Fri, 26 Jul 2024 11:06:08 +0800 Subject: [PATCH] [Doc-16375] change front build command (#16372) * change front build command en * change front build command zh --------- Co-authored-by: xiangzihao <460888207@qq.com> --- docs/docs/en/contribute/frontend-development.md | 4 ++-- docs/docs/zh/contribute/frontend-development.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/docs/en/contribute/frontend-development.md b/docs/docs/en/contribute/frontend-development.md index 47276caeaf..53fddb647c 100644 --- a/docs/docs/en/contribute/frontend-development.md +++ b/docs/docs/en/contribute/frontend-development.md @@ -57,9 +57,9 @@ npm install node-sass --unsafe-perm #Install node-sass dependency separately #### Front-end project release -- `npm run build` project packaging (after packaging, the root directory will create a folder called dist for publishing Nginx online) +- `pnpm run build:prod` project packaging (after packaging, the root directory will create a folder called dist for publishing Nginx online) -Run the `npm run build` command to generate a package file (dist) package +Run the `pnpm run build:prod` command to generate a package file (dist) package Copy it to the corresponding directory of the server (front-end service static page storage directory) diff --git a/docs/docs/zh/contribute/frontend-development.md b/docs/docs/zh/contribute/frontend-development.md index 46d2e9c82d..9a722056a5 100644 --- a/docs/docs/zh/contribute/frontend-development.md +++ b/docs/docs/zh/contribute/frontend-development.md @@ -57,9 +57,9 @@ npm install node-sass --unsafe-perm #单独安装node-sass依赖 #### 前端项目发布 -- `npm run build` 项目打包 (打包后根目录会创建一个名为dist文件夹,用于发布线上Nginx) +- `pnpm run build:prod` 项目打包 (打包后根目录会创建一个名为dist文件夹,用于发布线上Nginx) -运行 `npm run build` 命令,生成打包文件(dist)包 +运行 `pnpm run build:prod` 命令,生成打包文件(dist)包 再拷贝到服务器对应的目录下(前端服务静态页面存放目录)