Skip to content

Commit

Permalink
doc: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 27, 2021
1 parent ac1aebd commit 54e1516
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Expand Up @@ -119,6 +119,22 @@ var minified = banner.onebanner() + '\n' + uglify.minify(code, {
fs.writeFileSync('src/test.js', minified);
```

## Use in Rollup

```js
import banner from 'bannerjs';

// rollup.config.js
export default {
input: 'src/main.js',
output: {
file: 'bundle.js',
format: 'cjs',
banner: banner.multibanner()
}
};
```


## Command Line

Expand Down Expand Up @@ -152,4 +168,4 @@ cat my-js.js | bannerjs -o | uglify-js > my-js.min.js

# License

MIT license
MIT license

0 comments on commit 54e1516

Please sign in to comment.