Skip to content

Commit

Permalink
docs: UMI_DEV_SERVER_COMPRESS
Browse files Browse the repository at this point in the history
  • Loading branch information
fz6m committed Mar 2, 2024
1 parent 40fb5ff commit a025760
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/docs/docs/guides/env-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,14 @@ $ UMI_PLUGINS=./path/to/plugin1,./path/to/plugin2 umi dev
$ UMI_PRESETS=./path/to/preset1,./path/to/preset2 umi dev
```

### UMI_DEV_SERVER_COMPRESS

默认 Umi 开发服务器自带 [compress](https://github.com/expressjs/compression) 压缩中间件,这会使开发时 SSE 数据的传输 [无法流式获取](https://github.com/umijs/umi/issues/12144) ,通过指定 `UMI_DEV_SERVER_COMPRESS=none` 来关闭 compress 压缩功能:

```bash
UMI_DEV_SERVER_COMPRESS=none umi dev
```

### WEBPACK_FS_CACHE_DEBUG

开启 webpack 的物理缓存 debug 日志。
Expand Down

0 comments on commit a025760

Please sign in to comment.