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
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,10 @@ export function mySvgOptimizer(options?: Options): SvgOptimizer {

<p>

**Type:** `(contents: string) => string | Promise<string>`
**Type:** `(contents: string, path: string) => string | Promise<string>`
</p>

SVGのコンテンツを処理します
指定されたファイルパスのSVGコンテンツを処理します。オプティマイザーはこのパスを使用して、ファイルごとの値を導き出すことができます。たとえば、SVGOの`prefixIds`プラグインはこれを使用して、ファイルごとに一意なIDプレフィックスを生成します

## 仕組み

Expand Down
Loading