Skip to content

Commit

Permalink
docs: tip for gzip compression
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Nov 29, 2024
1 parent 2bbc854 commit e12bc78
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions website/docs/en/config/performance/print-file-size.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ export default {
};
```

:::tip
This data is only for reference to the size after gzip compression. Rsbuild does not enable gzip compression for static assets. Usually, you need to enable gzip compression on the server side, for example, using the [gzip module](https://nginx.org/en/docs/http/ngx_http_gzip_module.html) of nginx.
:::

### include

- **Type:**
Expand Down
4 changes: 4 additions & 0 deletions website/docs/zh/config/performance/print-file-size.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ export default {
};
```

:::tip
该数据仅用于参考 gzip 压缩后的体积,Rsbuild 并不会对静态资源开启 gzip 压缩。通常,你需要在服务器端开启 gzip 压缩,例如使用 [nginx 的 gzip 模块](https://nginx.org/en/docs/http/ngx_http_gzip_module.html)
:::

### include

- **类型:**
Expand Down

0 comments on commit e12bc78

Please sign in to comment.