1. rollup-plugin-strip-banner
Rollup plugin that can be used to remove banner on modules
rollup-plugin-strip-banner
Package: rollup-plugin-strip-banner
Created by: mjeanroy
Last modified: Sat, 14 Oct 2023 12:10:53 GMT
Version: 3.1.0
License: MIT
Downloads: 45,781
Repository: https://github.com/mjeanroy/rollup-plugin-strip-banner

Install

npm install rollup-plugin-strip-banner
yarn add rollup-plugin-strip-banner

rollup-plugin-strip-banner

Greenkeeper badge
Build Status
Npm version

A plugin for rollup that can be used to remove banners (such as license
headers) from modules files before generating the final bundle.

Installation

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

Configuration and usage

Add the plugin in your rollup configuration file:

 const stripBanner = require('rollup-plugin-strip-banner');

module.exports = {
  entry: 'src/index.js',
  dest: 'dist/index.js',
  plugins: [
    stripBanner()
  ]
}

As other rollup plugins, include and exclude can be configured:

 const stripBanner = require('rollup-plugin-strip-banner');

module.exports = {
  entry: 'src/index.js',
  dest: 'dist/index.js',
  plugins: [
    stripBanner({
      include: '**/*.js',
      exclude: 'node_modules/**/*'
    })
  ]
}

ChangeLogs

  • 3.1.0
    • Add support for rollup ^4.0.0
    • Dependency upgrades
  • 3.0.0
    • Add support for rollup ^3.0.0
    • Dependency upgrades
    • Remove support of node < 14
  • 2.0.0
    • Add support for rollup ^2.0.0.
    • Remove support of node < 10.
  • 1.2.0
    • Make rollup peer dependency explicit.
    • Make support of node >= 6 explicit.
  • 1.1.0
    • Dependency updates.
  • 1.0.0
    • Fix issue with sourcemap generation.
    • Dependency updates.
  • 0.3.0
    • Dependency updates.
  • 0.2.0
    • Dependency update (magic-string).
    • Dependency update (rollup-pluginutils).
  • 0.1.0 : First release

License

MIT License (MIT)

Contributing

If you find a bug or think about enhancement, feel free to contribute and submit an issue or a pull request.

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code