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)包 再拷贝到服务器对应的目录下(前端服务静态页面存放目录)