docs(frontend): 补充 pnpm 启动说明
This commit is contained in:
34
frontend/README.md
Normal file
34
frontend/README.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# Common Agent Frontend
|
||||
|
||||
## 启动方式
|
||||
|
||||
进入前端目录:
|
||||
|
||||
```bash
|
||||
cd frontend
|
||||
```
|
||||
|
||||
安装依赖:
|
||||
|
||||
```bash
|
||||
pnpm config set registry https://registry.npmjs.org/
|
||||
pnpm install
|
||||
```
|
||||
|
||||
启动开发服务:
|
||||
|
||||
```bash
|
||||
pnpm dev
|
||||
```
|
||||
|
||||
构建生产包:
|
||||
|
||||
```bash
|
||||
pnpm build
|
||||
```
|
||||
|
||||
本地预览生产包:
|
||||
|
||||
```bash
|
||||
pnpm preview
|
||||
```
|
||||
Reference in New Issue
Block a user