Browse Source

[Doc-16375] change front build command (#16372)

* change front build command en

* change front build command zh

---------

Co-authored-by: xiangzihao <460888207@qq.com>
dev
ThomasTan2002 4 months ago committed by GitHub
parent
commit
94774e706a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      docs/docs/en/contribute/frontend-development.md
  2. 4
      docs/docs/zh/contribute/frontend-development.md

4
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)

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

Loading…
Cancel
Save