Skip to content

Rollup plugin to append content before or after js bundle.

License

Notifications You must be signed in to change notification settings

tinysets/rollup-plugin-header

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Rollup plugin to append content before or after js bundle.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%