Skip to content

Commit c099e27

Browse files
committed
up
1 parent 147390a commit c099e27

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

website/docs/en/guide/solution/vue.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ In this document, you will learn how to build a Vue component library using Rsli
1818

1919
For developing Vue components, you need to set the [target](/config/rsbuild/output#outputtarget) to `"web"` in `rslib.config.ts`. This is crucial because Rslib sets `target` to `"node"` by default, which is different from Rsbuild's default target value.
2020

21-
To compile Vue (.vue single-file components), you need to register the [rsbuild-plugin-unplugin-vue plugin](https://github.com/rspack-contrib/rsbuild-plugin-unplugin-vue) based on [unplugin-vue](https://github.com/unplugin/unplugin-vue). This plugin will automatically add the necessary configurations for Vue build.
21+
To compile Vue (.vue single-file components), you need to register the [rsbuild-plugin-unplugin-vue](https://github.com/rspack-contrib/rsbuild-plugin-unplugin-vue) plugin based on [unplugin-vue](https://github.com/unplugin/unplugin-vue). This plugin will automatically add the necessary configurations for Vue build.
2222

2323
For example, register in `rslib.config.ts`:
2424

@@ -39,7 +39,7 @@ export default defineConfig({
3939
```
4040

4141
::: note
42-
Currently, the rsbuild-plugin-unplugin-vue plugin does not support packaging Vue SFC scoped CSS styles. You can choose styling solutions like Less or Sass.
42+
Currently, the [rsbuild-plugin-unplugin-vue](https://github.com/rspack-contrib/rsbuild-plugin-unplugin-vue) plugin does not support packaging Vue SFC [scoped CSS](https://vuejs.org/api/sfc-css-features#scoped-css) styles. You can choose styling solutions like Less or Sass.
4343
:::
4444

4545
For more configuration options, please refer to the [rsbuild-plugin-unplugin-vue](https://github.com/rspack-contrib/rsbuild-plugin-unplugin-vue) plugin documentation.

website/docs/zh/guide/solution/vue.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
开发 Vue 组件,需要在 `rslib.config.ts` 中设置 [target](/config/rsbuild/output#outputtarget)`"web"`。 这一点至关重要,因为 Rslib 默认将 `target` 设置为 `"node"`,这与 Rsbuild 的 target 默认值不同。
2020

21-
要编译 Vue(.vue 单文件组件),你需要注册基于 [unplugin-vue](https://github.com/unplugin/unplugin-vue) 实现的 [rsbuild-plugin-unplugin-vue 插件](https://github.com/rspack-contrib/rsbuild-plugin-unplugin-vue)。该插件将自动添加 Vue 构建所需的配置。
21+
要编译 Vue(.vue 单文件组件),你需要注册基于 [unplugin-vue](https://github.com/unplugin/unplugin-vue) 实现的 [rsbuild-plugin-unplugin-vue](https://github.com/rspack-contrib/rsbuild-plugin-unplugin-vue) 插件。该插件将自动添加 Vue 构建所需的配置。
2222

2323
例如,在 `rslib.config.ts` 中注册:
2424

@@ -39,7 +39,7 @@ export default defineConfig({
3939
```
4040

4141
::: note
42-
目前 rsbuild-plugin-unplugin-vue 还不支持打包 Vue SFC scoped CSS 样式,你可以选择 Less、Sass 等样式解决方案
42+
目前 [rsbuild-plugin-unplugin-vue](https://github.com/rspack-contrib/rsbuild-plugin-unplugin-vue) 插件还不支持打包 Vue SFC [scoped CSS](https://vuejs.org/api/sfc-css-features#scoped-css) 样式,你可以选择 Less、Sass 等样式解决方案
4343
:::
4444

4545
更多配置可以参考 [rsbuild-plugin-unplugin-vue](https://github.com/rspack-contrib/rsbuild-plugin-unplugin-vue) 插件文档。

0 commit comments

Comments
 (0)