rollup-plugin-entry-banner
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

rollup-plugin-entry-banner

npm version NPM Downloads Build Status codecov MIT

Introduction

A simple Rollup plugin to prepend content to entry chunk

As follows:

screenshots

Usage

Install the plugin

npm install --save-dev rollup-plugin-banner

Add it to your rollup configuration:

import entryBanner from 'rollup-plugin-entry-banner';
// const { bannerEntry } = require('rollup-plugin-entry-banner'); /* use commonjs */
export default {
  plugins: [
    entryBanner()
  ]
}

Note: it can also be used in Vite.

Options

name type required default description
packageJsonDir string false process.cwd() the directory path of The package.json file
preset boolean false true whether apply the preset of the banner style (It includes the log style shown in the above picture. )
renderBanner function false undefined customize the output banner content

Other

Package Sidebar

Install

npm i rollup-plugin-entry-banner

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

8.78 kB

Total Files

5

Last publish

Collaborators

  • jackluson