Skip to content

Examples

This section contains example projects demonstrating how to use rollup-plugin-add-banner with different Rollup versions.

Online Examples

Try the plugin online with StackBlitz:

ExampleDescriptionLink
Rollup v2Rollup 2.x with dynamic banner from package.jsonOpen in StackBlitz
Rollup v4Rollup 4.x with multi-line license bannerOpen in StackBlitz

Local Examples

Clone the repository and try the examples locally:

bash
git clone https://github.com/saqqdy/rollup-plugin-add-banner.git
cd rollup-plugin-add-banner/examples/rollup-v4
pnpm install
pnpm run build
cat dist/index.js

Feature Coverage

Featurerollup-v2rollup-v4
Single-line banner
Multi-line banner
Dynamic banner from package.json
Source map support

Released under the MIT License.