1.0.0 • Published 8 months ago

rollup-plugin-header v1.0.0

Weekly downloads
-
License
-
Repository
github
Last release
8 months ago

rollup-plugin-header

Node.js Package npm version

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