rollup-plugin-cli
v0.1.5
Published
A rollup plugin to prefix scripts for CLI usage
Downloads
56
Readme
rollup-plugin-cli
A rollup plugin to prefix scripts for CLI usage
Installation
$ npm install rollup-plugin-cli
Usage
By default, rollup-plugin-cli will prefix your bundle with #!/usr/bin/env node
.
import cli from 'rollup-plugin-cli';
export default {
main: 'main.js',
plugins: [ cli() ]
};
If the default hashbang doesn't fit your needs, you can pass a custom value.
import cli from 'rollup-plugin-cli';
export default {
main: 'main.js',
plugins: [ cli( { hashbang: '#!/my/custom/hashbang' } ) ]
};