0.3.0 • Published 8 years ago
hexo-renderer-buble v0.3.0
hexo-renderer-buble
Install
$ npm install --save hexo-renderer-bubleUsage
Just install this package and you're all set, if you want custom options for buble, simply do:
# _config.yml
buble:
transforms:
dangerousForOf: trueCheck out all buble options: https://buble.surge.sh/guide/#using-the-javascript-api
Default options:
{
transforms: {
generator: false,
dangerousForOf: true,
dangerousTaggedTemplateString: true
}
}include
By default it transforms all .js .jsx .es6 files, but you can also set include to transform specified files only:
buble:
include: **/foo.js
# or array
include:
- **/foo.js
- **/js/bar.jsContributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D