在每個生成的區塊的頂部或底部新增橫幅。
undefined
名稱 | 類型 | 預設值 | 描述 |
---|---|---|---|
banner | BannerFunction|string | undefined | 指定橫幅,它將被包裹在註解中。 |
entryOnly | boolean|undefined | undefined | 如果為 true,橫幅將僅新增到入口區塊中。 |
footer | boolean|undefined | undefined | 如果為 true,橫幅將放置在輸出的末尾。 |
raw | boolean|undefined | undefined | 如果為 true,橫幅將不會被包裹在註解中。 |
stage | number|undefined | PROCESS_ASSETS_STAGE_ADDITIONS (-100) | 編譯中應注入橫幅的階段。 |
test | BannerRules|undefined | undefined | 包含所有通過測試斷言的模組。 |
include | BannerRules|undefined | undefined | 包含所有符合這些條件的模組。 |
exclude | BannerRules|undefined | undefined | 排除所有符合這些條件的模組。 |
在每個區塊檔案的底部新增橫幅。