项目作者: egoist

项目描述 :
Using Buble to transform JS files in your Hexo website.
高级语言: JavaScript
项目地址: git://github.com/egoist/hexo-renderer-buble.git
创建时间: 2016-11-15T05:03:21Z
项目社区:https://github.com/egoist/hexo-renderer-buble

开源协议:MIT License

下载


hexo-renderer-buble

NPM version NPM downloads Build Status

Install

  1. $ npm install --save hexo-renderer-buble

Usage

Just install this package and you’re all set, if you want custom options for buble, simply do:

  1. # _config.yml
  2. buble:
  3. transforms:
  4. dangerousForOf: true

Check out all buble options: https://buble.surge.sh/guide/#using-the-javascript-api

Default options:

  1. {
  2. transforms: {
  3. generator: false,
  4. dangerousForOf: true,
  5. dangerousTaggedTemplateString: true
  6. }
  7. }

include

By default it transforms all .js .jsx .es6 files, but you can also set include to transform specified files only:

  1. buble:
  2. include: **/foo.js
  3. # or array
  4. include:
  5. - **/foo.js
  6. - **/js/bar.js

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT © EGOIST