rollup-plugin-header
v1.0.0
Published
Rollup plugin to append content before or after js bundle
Downloads
6
Maintainers
Readme
rollup-plugin-header
from rollup-plugin-banner
Introduction
Rollup plugin to append content before or after js bundle.
Usage
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