rollup-plugin-header

1.0.0 • Public • Published

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

/rollup-plugin-header/

    Package Sidebar

    Install

    npm i rollup-plugin-header

    Weekly Downloads

    0

    Version

    1.0.0

    License

    none

    Unpacked Size

    3.16 kB

    Total Files

    4

    Last publish

    Collaborators

    • fh76