Conversation
…in plugins In plugin-preview V2, @rsbuild/plugin-less and @rsbuild/plugin-sass are no longer built-in. Document how to configure them manually via iframeOptions.builderConfig.
Deploying rspress-v2 with
|
| Latest commit: |
544b178
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://2a79244d.rspress-v2.pages.dev |
| Branch Preview URL: | https://syt-vibe-kanban-2b18-plugin.rspress-v2.pages.dev |
Rsdoctor Bundle Diff AnalysisFound 3 projects in monorepo, 3 projects with changes. 📊 Quick Summary
📋 Detailed Reports (Click to expand)📁 nodePath:
📦 Download Diff Report: node Bundle Diff 📁 node_mdPath:
📦 Download Diff Report: node_md Bundle Diff 📁 webPath:
📦 Download Diff Report: web Bundle Diff Generated by Rsdoctor GitHub Action |
There was a problem hiding this comment.
Pull request overview
补充了 @rspress/plugin-preview 从 V1 迁移到 V2 的说明,明确 V2 不再内置 @rsbuild/plugin-less / @rsbuild/plugin-sass,并引导用户通过 iframeOptions.builderConfig 手动为预览 iframe 的 Rsbuild 实例添加对应插件。
Changes:
- 在 plugin-preview 的中英文迁移章节新增 “Less/Sass 需手动通过
iframeOptions.builderConfig配置” 说明与示例 - 在 Rspress 1.x -> 2.x 的中英文迁移指南新增 plugin-preview 小节,并链接到 plugin-preview 迁移文档
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
| website/docs/zh/plugin/official-plugins/preview.mdx | 在中文 plugin-preview 迁移章节补充 Less/Sass 插件不再内置及配置方式示例 |
| website/docs/zh/guide/migration/rspress-1-x.mdx | 在中文总迁移指南新增 plugin-preview 小节并给出配置示例与跳转链接 |
| website/docs/en/plugin/official-plugins/preview.mdx | 在英文 plugin-preview 迁移章节补充 Less/Sass 插件不再内置及配置方式示例 |
| website/docs/en/guide/migration/rspress-1-x.mdx | 在英文总迁移指南新增 plugin-preview 小节并给出配置示例与跳转链接 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
… and install steps Address review feedback: add missing pluginPreview/defineConfig imports, show full rspress.config.ts context, and add PackageManagerTabs install instructions for @rsbuild/plugin-less and @rsbuild/plugin-sass.
The Chinese overview-page doc was missing the OverviewGroup usage example that existed in the English version's Customization section.
Provide two customization approaches: 1. Custom theme to modify OverviewGroup styles while keeping built-in overview functionality 2. Fully custom page content using OverviewGroup with pageType: doc-wide
Summary
Related Issue
Checklist
AI Summary
What changed
Updated migration documentation for
@rspress/plugin-previewacross 4 files (EN/ZH):plugin-previewdocs (preview.mdx): Added a migration note in the "Migrating from V1" section explaining that@rsbuild/plugin-lessand@rsbuild/plugin-sassare no longer built-in, with a code example showing how to configure them viaiframeOptions.builderConfig.rspress-1-x.mdx): Added a newplugin-previewsection documenting the same breaking change, with a link to the full plugin-preview migration guide.Why
In
@rspress/plugin-previewV2, the built-in@rsbuild/plugin-lessand@rsbuild/plugin-sassdependencies were removed to reduce bundle size and avoid unnecessary dependencies for users who don't need Less/Sass. Users who rely on these preprocessors in their previews need clear guidance on how to manually configure them.Details
Users can restore Less/Sass support by adding the corresponding Rsbuild plugin through
iframeOptions.builderConfig.plugins:This PR was written using Vibe Kanban