hexo-yam/README.md

62 lines
1.2 KiB
Markdown
Raw Normal View History

2016-05-26 11:23:57 +00:00
# Hexo-neat
2016-05-26 11:09:41 +00:00
2016-05-26 11:23:57 +00:00
I want a profect page to show for my blog, so I made this.
## Show
[青枫浦](http://post.zz173.com)
2016-05-26 11:09:41 +00:00
## Installation
``` bash
2016-05-26 11:23:57 +00:00
$ npm install hexo-neat --save
2016-05-26 11:09:41 +00:00
```
## Options
2016-05-26 11:23:57 +00:00
To Enable Auto neat , you must config like this:
2016-05-26 11:09:41 +00:00
``` yaml
2016-05-26 11:23:57 +00:00
neat_enable: true
```
``` yaml
neat_html:
2016-05-26 11:09:41 +00:00
enable: true
exclude:
```
- **enable** - Enable the plugin. Defaults to `true`.
- **exclude**: Exclude files
2016-05-26 11:23:57 +00:00
**Note:** there are so many params please see '[HTMLMinifier](https://github.com/kangax/html-minifier)'
2016-05-26 11:09:41 +00:00
----------
``` yaml
2016-05-26 11:23:57 +00:00
neat_css:
2016-05-26 11:09:41 +00:00
enable: true
exclude:
- '*.min.css'
```
- **enable** - Enable the plugin. Defaults to `true`.
- **exclude**: Exclude files
----------
``` yaml
2016-05-26 11:23:57 +00:00
neat_js:
2016-05-26 11:09:41 +00:00
enable: true
mangle: true
output:
compress:
exclude:
- '*.min.js'
```
- **enable** - Enable the plugin. Defaults to `true`.
- **mangle**: Mangle file names
- **output**: Output options
- **compress**: Compress options
- **exclude**: Exclude files
2016-05-26 11:23:57 +00:00
## Thanks
Say Very Thanks for this gays:
- neat html by [HTMLMinifier](https://github.com/kangax/html-minifier)
- neat css by [clean-css](https://github.com/jakubpawlowicz/clean-css)
- neat js by [UglifyJS](http://lisperator.net/uglifyjs/)