Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions config/shared-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,12 @@ CSS モジュールの動作を設定します。オプションは [postcss-mod

CSS プリプロセッサーに渡すオプションを指定します。オプションのキーとしてファイルの拡張子を使用します。各プリプロセッサーでサポートされているオプションは、それぞれのドキュメントで確認できます:

- `sass`/`scss` - トップレベルのオプション `api: "legacy" | "modern" | "modern-compiler"`(デフォルト `"legacy"`)で、使用する sass API を切り替えることができます。最高のパフォーマンスを得るには、`sass-embedded` パッケージとともに `api: "modern-compiler"` を使用することをおすすめします。[オプション(legacy)](https://sass-lang.com/documentation/js-api/interfaces/LegacyStringOptions)、[オプション(modern)](https://sass-lang.com/documentation/js-api/interfaces/stringoptions/)。
- `less` - [オプション](https://lesscss.org/usage/#less-options)。
- `styl`/`stylus` - オブジェクトとして渡せる [`define`](https://stylus-lang.com/docs/js.html#define-name-node) のみサポートされています。
- `sass`/`scss`:
- 使用する sass の API を `api: "modern-compiler" | "modern" | "legacy"` で選択します(`sass-embedded` がインストールされている場合はデフォルトで `"modern-compiler"`、そうでない場合は `"modern"`)。最高のパフォーマンスを得るには、`sass-embedded` パッケージで `api: "modern-compiler"` を使用することをお勧めします。`"legacy"` API は非推奨であり、Vite 7 で削除される予定です。
- [オプション(modern)](https://sass-lang.com/documentation/js-api/interfaces/stringoptions/)
- [オプション(legacy)](https://sass-lang.com/documentation/js-api/interfaces/LegacyStringOptions)
- `less`: [オプション](https://lesscss.org/usage/#less-options)。
- `styl`/`stylus`: オブジェクトとして渡せる [`define`](https://stylus-lang.com/docs/js.html#define-name-node) のみサポートされています。

**例:**

Expand Down