rollup-plugin-strip-banner

    2.0.0 • Public • Published

    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

    • 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.

    Install

    npm i rollup-plugin-strip-banner

    DownloadsWeekly Downloads

    7,588

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    59.4 kB

    Total Files

    5

    Last publish

    Collaborators

    • mickael.jeanroy