Skip to content

Beautify Hexo generated HTML, CSS and JS files, using js-beautify.

License

Notifications You must be signed in to change notification settings

mcdanielisaac/hexo-beautify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexo Beautify

Build Status NPM Version NPM Dependencies Coverage Status

A Hexo filter wrapper for js-beautify. Supports HTML, CSS and JS files.

Instalation

To install hexo-beautify run:

npm install hexo-beautify --save

Configuration

Inside your _config.yml:

# Hexo Beautify
beautify:
  types:
    - html
    - css
    - js
  exclude:
    - *.min.css
    - *.min.js
  html:
    'indent_inner_html': false
    'indent_size': 2
    'indent_with_tabs': false
    # More Options (https://github.com/beautify-web/js-beautify/blob/master/README.md)
  css:
    'indent_size': 2
    'newline_between_rules': true
    'indent_with_tabs': false
    # More Options (https://github.com/beautify-web/js-beautify/blob/master/README.md)
  js:
    'indent_size': 2
    'indent_with_tabs': false
    # More Options (https://github.com/beautify-web/js-beautify/blob/master/README.md)

You can discover more options in the README of the js-beautify project.

About

Beautify Hexo generated HTML, CSS and JS files, using js-beautify.

Resources

License

Stars

Watchers

Forks

Packages

No packages published