Skip to content

doc: add rsbuild plugin start doc #5455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

zoolsher
Copy link
Contributor

Summary

adding the documents for developing a rsbuild plugin

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@Copilot Copilot AI review requested due to automatic review settings June 20, 2025 13:19
Copy link

netlify bot commented Jun 20, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit da6132d
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/6858f4821e942e00085173f5
😎 Deploy Preview https://deploy-preview-5455--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 84 (🟢 up 9 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@zoolsher zoolsher marked this pull request as draft June 20, 2025 13:19
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new Chinese guide for developing Rsbuild plugins and updates navigation metadata.

  • Introduces start.mdx with step-by-step plugin development instructions
  • Registers the plugin guide in both the plugin-specific and top-level guide _meta.json files

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
website/docs/zh/guide/plugin/start.mdx Added detailed Rsbuild plugin development guide
website/docs/zh/guide/plugin/_meta.json Registered the start page in plugin metadata
website/docs/zh/guide/_meta.json Added plugin directory entry to guide menu
Comments suppressed due to low confidence (1)

website/docs/zh/guide/plugin/start.mdx:71

  • 示例中应该使用 process.env.NODE_ENV 而非 process.node.NODE_ENV 来判断环境。
1. 真实的 Rsbuild 实例会在 `modifyRsbuildConfig` `modifyEnvironmentConfig` `onBeforeStartDevServer` 之后创建,所以在这三个 API 内并没有明确的 mode 是 development 还是 production。在这三个 API 内可以通过 `process.node.NODE_ENV` 来判断是否为 development,在此之后的 API 中可以通过 hooks 参数中的 isDev isProd 来判断

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy