Plugin (build) - CI/CD用語集の定義
build plugin は build 全体にわたって bundler を拡張します。1 度に 1 ファイルを変換する loader とは異なります。
build plugin は、単一のファイルではなく build ライフサイクル全体にフックすることで bundler を拡張し、HTML ファイルの生成、グローバルの定義、出力の分析などのタスクを可能にします。webpack の plugin はコンパイラの hook に接続します。
plugin はコンパイラのイベントを購読して幅広いタスクを実行します。たとえば HtmlWebpackPlugin が index.html を出力したり、DefinePlugin が環境の値を注入したりします。Rollup と Vite は独自の plugin API を持ちます。CI では、plugin は cache busting に使われる manifest と asset ハッシュを出力することがよくあります。
関連ガイド
Loader (webpack) - CI/CD Glossary DefinitionLoader (webpack): A loader in webpack is a transform applied to a file as it is imported, turning non-JavaScr…
Manifest File - CI/CD Glossary DefinitionManifest File: A manifest file is a build-generated JSON that maps logical asset names to their hashed output…
Asset Hashing - CI/CD Glossary DefinitionAsset Hashing: Asset hashing embeds a content-derived hash in output filenames (for example `app.3f9a1c.js`)…