Manifest File - CI/CD用語集の定義
manifest file は論理的な asset 名をハッシュ付きファイル名に対応付け、サーバーが正しい build 出力を見つけられるようにします。
manifest file は build が生成する JSON で、論理的な asset 名をハッシュ付きの出力ファイル名に対応付け、cache busting 後にサーバーやフレームワークが正しいファイルを参照できるようにします。Webpack は manifest プラグインによってこれを生成します。
asset hashing がファイル名を変えた後は、コードでそれをハードコードできないため、build は app.js を app.3f9a1c.js に対応付ける manifest を出力します。フレームワークはこれを読み取って正しい script タグを注入します。CIでは、manifest はプロダクション build の artifact の一部です。
関連ガイド
Asset Hashing - CI/CD Glossary DefinitionAsset Hashing: Asset hashing embeds a content-derived hash in output filenames (for example `app.3f9a1c.js`)…
Content Hash - CI/CD Glossary DefinitionContent Hash: A content hash is a hash computed from a file contents, used in output filenames so the name ch…
Plugin (build) - CI/CD Glossary DefinitionPlugin (build): A build plugin extends a bundler by hooking into the whole build lifecycle rather than a sing…