Standardize build commands and remove --emptyOutDir flag

• Uses exact versions from `bun.lock` without updating
• Skips devDependencies, saving time and bandwidth
• The --emptyOutDir already configured in vite.config.ts
This commit is contained in:
yangdx 2025-10-14 02:49:25 +08:00
parent ee45ab5104
commit 8bf411314e
4 changed files with 4 additions and 4 deletions

View file

@ -26,7 +26,7 @@ jobs:
- name: Build Frontend WebUI - name: Build Frontend WebUI
run: | run: |
cd lightrag_webui cd lightrag_webui
bun install bun install --frozen-lockfile --production
bun run build bun run build
cd .. cd ..

View file

@ -37,7 +37,7 @@ pip install -e ".[api]"
# Build front-end artifacts # Build front-end artifacts
cd lightrag_webui cd lightrag_webui
bun install --frozen-lockfile --production bun install --frozen-lockfile --production
bun run build --emptyOutDir bun run build
cd .. cd ..
``` ```

View file

@ -37,7 +37,7 @@ pip install -e ".[api]"
# Build front-end artifacts # Build front-end artifacts
cd lightrag_webui cd lightrag_webui
bun install --frozen-lockfile --production bun install --frozen-lockfile --production
bun run build --emptyOutDir bun run build
cd .. cd ..
``` ```

View file

@ -21,7 +21,7 @@ LightRAG WebUI is a React-based web interface for interacting with the LightRAG
Run the following command to build the project: Run the following command to build the project:
```bash ```bash
bun run build --emptyOutDir bun run build
``` ```
This command will bundle the project and output the built files to the `lightrag/api/webui` directory. This command will bundle the project and output the built files to the `lightrag/api/webui` directory.