メインコンテンツまでスキップ

画像の自動最適化

結果: 部分対応。 import または Markdown relative asset は bundler を通り、 content hash が付く場合がある。static/ の file はそのまま copy される。 Docusaurus core は全画像を自動 resize したり、responsive srcset や次世代 format を 生成したりしない。

docs directory に同居する asset

上の SVG は文書と同じ場所にある。これは build-aware な asset 処理の実演であり、 raster compression ではない。必要な場合は image plugin または別 pipeline を 追加・保守する。