Closed Timeless0911 closed 2 months ago
This PR implements the banner and footer feature.
banner
footer
We use bannerPlugin of Rspack to add banner and footer in js/css build.
Notice:
string
PROCESS_ASSETS_STAGE_OPTIMIZE_SIZE + 1
type BannerAndFooter = { js?: string; css?: string; dts?: string; }; interface LibConfig extends RsbuildConfig { banner?: BannerAndFooter; footer?: BannerAndFooter; }
Since support of css of bundleless mode is not ready, we ignore css banner and footer tests in bundleless mode.
Summary
This PR implements the
banner
andfooter
feature.We use bannerPlugin of Rspack to add banner and footer in js/css build.
Notice:
string
type is supported and will not be wrapped in a comment.PROCESS_ASSETS_STAGE_OPTIMIZE_SIZE + 1
to prevent avoid influence of minimizersSince support of css of bundleless mode is not ready, we ignore css banner and footer tests in bundleless mode.
Related Links
Checklist