懒羊羊
2024-03-22 640ff86be676ef7ef5a2ef12d0af34a46962c17e
提交 | 用户 | 时间
e57a89 1 ## 开发
2
3 ```bash
4 # 克隆项目
5 git clone http://admin@192.168.0.189:8442/r/Jcdm-Mes.git
6
7 # 进入项目目录
8 cd jcdm-ui
9
10 # 安装依赖
11 npm install
12
13 # 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题
14 npm install --registry=https://registry.npmmirror.com
15
16 # 启动服务
17 npm run dev
18 ```
19
20 浏览器访问 http://localhost:80
21
22 ## 发布
23
24 ```bash
25 # 构建测试环境
26 npm run build:stage
27
28 # 构建生产环境
29 npm run build:prod
30 ```