Skip to content

Using Buble to transform JS files in your Hexo website.

License

Notifications You must be signed in to change notification settings

egoist/hexo-renderer-buble

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-renderer-buble

NPM version NPM downloads Build Status

Install

$ 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:

# _config.yml
buble:
  transforms:
    dangerousForOf: true

Check 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.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

About

Using Buble to transform JS files in your Hexo website.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published