Skip to content

Commit

Permalink
docs: translate exportsOnly description (#6700)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Jun 1, 2024
1 parent 185211d commit 7d5d175
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/docs/en/config/module.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ Customize how CSS export names are exported to javascript modules, such as keepi
- **Type:** `boolean`
- **Default:** `true` for node environments, `false` for web environments.

If `true`, **only exports** the identifier mappings in the output JavaScript files, without embedding any stylesheets in the template. Useful if you are using CSS Modules for pre-rendering (e.g. SSR).
If `true`, **only exports** the identifier mappings from CSS into the output JavaScript files, without embedding any stylesheets in the template. Useful if you are using CSS Modules for pre-rendering (e.g. SSR).

If `false`, generate stylesheets and embed them in the template.

Expand Down
4 changes: 3 additions & 1 deletion website/docs/zh/config/module.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,9 @@ module.exports = {
- **类型:** `boolean`
- **默认值:** `true` for node environments, `false` for web environments.

避免生成和加载样式表,只将来自 CSS 的导出嵌入到输出的 JavaScript 文件中。
如果为 `true`,仅从 CSS 中导出标识符映射表到 JavaScript 文件中,而不在 template 中注入任何 stylesheets。适用于使用 CSS Modules 进行预渲染的场景(例如 SSR)。

如果为 `false`,生成 stylesheets 并将其注入到 template 中。

#### module.generator["css/auto"].localIdentName

Expand Down

0 comments on commit 7d5d175

Please sign in to comment.