27 lines
832 B
Markdown
27 lines
832 B
Markdown
# babel-plugin-banner [](https://travis-ci.org/Comandeer/babel-plugin-banner) [](https://david-dm.org/Comandeer/babel-plugin-banner) [](https://david-dm.org/Comandeer/babel-plugin-banner#info=devDependencies)
|
|
|
|
Prepends given comment to the beginning of babelified code.
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
npm install @comandeer/babel-plugin-banner [--save-dev]
|
|
```
|
|
|
|
## Usage
|
|
|
|
```javascript
|
|
{
|
|
"presets": ["es2015"],
|
|
"plugins": [
|
|
["@comandeer/babel-plugin-banner", {
|
|
"banner": "/*! Some nice comment */"
|
|
}]
|
|
]
|
|
}
|
|
```
|
|
|
|
## License
|
|
|
|
See [LICENSE](./LICENSE) file for details.
|