From ac49a499636f3b000a8a2ccbb9b40013a32489bc Mon Sep 17 00:00:00 2001 From: "gaoyuan.1226" Date: Tue, 30 Jul 2024 19:33:07 +0800 Subject: [PATCH] docs: add shorter usage --- website/docs/en/guide/advanced/environments.mdx | 3 +++ website/docs/zh/guide/advanced/environments.mdx | 3 +++ 2 files changed, 6 insertions(+) diff --git a/website/docs/en/guide/advanced/environments.mdx b/website/docs/en/guide/advanced/environments.mdx index 22b8612f63..338bb8e4db 100644 --- a/website/docs/en/guide/advanced/environments.mdx +++ b/website/docs/en/guide/advanced/environments.mdx @@ -113,6 +113,9 @@ rsbuild dev --environment web # Build for the web and ssr environments rsbuild dev --environment web --environment node + +# Build multiple environments can be shortened to: +rsbuild dev --environment web,node ``` ## Add plugins for specified environment diff --git a/website/docs/zh/guide/advanced/environments.mdx b/website/docs/zh/guide/advanced/environments.mdx index 9a8f1ba3b0..61b70a1477 100644 --- a/website/docs/zh/guide/advanced/environments.mdx +++ b/website/docs/zh/guide/advanced/environments.mdx @@ -113,6 +113,9 @@ rsbuild dev --environment web # 构建 web 和 ssr 环境 rsbuild dev --environment web --environment node + +# 构建多个环境可以简写为: +rsbuild dev --environment web,node ``` ## 为指定环境添加插件