from rollup-plugin-banner
Rollup plugin to append content before or after js bundle.
Install the plugin with NPM:
npm install --save-dev rollup-plugin-header
Add it to your rollup configuration:
import { header } from 'rollup-plugin-header'
export default {
plugins: [
header({ 'header': '#!/usr/bin/env node\n' ,footer:'\nsomefooter'})
]
}
Input:
header({ 'header': '#!/usr/bin/env node\n' ,footer:'\nsomefooter'})
Output:
#!/usr/bin/env node
...code...
somefooter