Gem 一覧へ戻る
mjeanroy/rollup-plugin-strip-banner(新しいタブで開きます)
主要言語: JavaScript
Rollup plugin that can be used to remove banner on JS files
- star 数
- 19
- watcher 数
- 1
- fork 数
- 2
- issue 数
- 6
- 最終更新
- 2026/10/30
主要言語: JavaScript
Rollup plugin that can be used to remove banner on JS files
A plugin for rollup that can be used to remove banners (such as license headers) from modules files before generating the final bundle.
npm install --save-dev rollup-plugin-strip-banner
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/**/*' }) ] }
magic-string).rollup-pluginutils).MIT License (MIT)
If you find a bug or think about enhancement, feel free to contribute and submit an issue or a pull request.