hexo-yam/README.md

65 lines
1.3 KiB
Markdown
Raw Normal View History

2016-06-23 05:27:24 +00:00
# status
[![npm version](https://badge.fury.io/js/hexo-neat.svg)](https://badge.fury.io/js/hexo-neat)
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
2016-06-23 05:27:24 +00:00
exclude:
2016-05-26 11:09:41 +00:00
```
- **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
2016-06-23 05:27:24 +00:00
exclude:
2016-05-26 11:09:41 +00:00
- '*.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:
2016-06-23 05:27:24 +00:00
exclude:
2016-05-26 11:09:41 +00:00
- '*.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/)