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

アセット配置

結果: 標準。 Docusaurus には2つの実用的な配置方法がある。

  • criteria/demo-asset.svg は相対参照され module bundler が処理する。
  • static/img/docusaurus-demo.svg は locale build へ byte-for-byte で copy される。

static/img からコピーされた public asset

同居 file は文書と一緒に移動でき fingerprint の対象になる。static file は予測可能な 名前を保てるが、cache invalidation と optimization は著者側の責任になる。