Are you an LLM? You can read better optimized documentation at /reference/OutputOptions.footer.md for this page in Markdown format
footer
- Type:
optionalfooter:string| (chunk) =>string|Promise<string>
Defined in: options/output-options.ts:234
A string to append to the bundle before renderChunk hook.
See output.outro, output.postFooter as well.
WARNING
When using output.footer with minification enabled, the footer content may be stripped out unless it is formatted as a legal comment. To ensure your footer persists through minification, do either:
- Use
output.postFooterinstead, which is added after minification, or - Use one of these comment formats:
- Comments starting with
/*!(e.g.,/*! My footer */) - Comments containing
@license(e.g.,/* @license My footer */) - Comments containing
@preserve(e.g.,/* @preserve My footer */) - Comments starting with
//!(for single-line comments)
- Comments starting with
The latter way's behavior is controlled by the output.legalComments option, which defaults to 'inline' and preserves these special comment formats.