docs: prefer to use the postcss plugin of unocss#5594
Merged
chenjiahan merged 1 commit intomainfrom Jul 14, 2025
Merged
Conversation
✅ Deploy Preview for rsbuild ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR reverts the previous Webpack-based UnoCSS integration and restores the PostCSS plugin approach in the documentation.
- Switched from
@unocss/webpacktounocss&@unocss/postcssin install instructions - Replaced Rsbuild/Webpack plugin setup with a
postcss.config.mjsexample - Updated config and CSS import steps in both Chinese and English guides
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| website/docs/zh/guide/styling/unocss.mdx | 用 PostCSS 插件取代 @unocss/webpack 集成示例,并更新安装与配置步骤 |
| website/docs/en/guide/styling/unocss.mdx | Updated to use PostCSS plugin instead of Webpack, adjusted commands and setup |
Comments suppressed due to low confidence (3)
website/docs/zh/guide/styling/unocss.mdx:5
- 建议为
PostCSS 插件添加指向@unocss/postcssnpm 包的链接,以便读者快速访问该插件的详细信息。
你可以通过 PostCSS 插件来在 Rsbuild 中接入 UnoCSS。
website/docs/zh/guide/styling/unocss.mdx:27
- 考虑在此处添加一条注释,提示读者 Rsbuild 已集成 Autoprefixer,可以直接只注册 UnoCSS 插件。
## 配置 UnoCSS
website/docs/en/guide/styling/unocss.mdx:9
- Consider adding hyperlinks to the npm pages for
unocssand@unocss/postcssso readers can easily access the package documentation.
You need to install `unocss` and `@unocss/postcss` first.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
The PR reverts #4287 and adds the
@unocss/postcssguide back, as@unocss/webpackhas some limitations.Related Links
Checklist