Update readme formatting

This commit is contained in:
weyusi 2018-10-25 20:44:33 +10:30
parent 84f7a911d3
commit 0296c15fda
3 changed files with 14 additions and 16 deletions

View File

@ -33,8 +33,8 @@ neat_html:
exclude: exclude:
``` ```
- **enable** - Enable the plugin. Defaults to `true`. - **enable** - Enable the plugin. Defaults to `true`.
- **logger** - Print log switch. Defaults to `true`. - **logger** - Verbose output. Defaults to `false`.
- **exclude**: Exclude files - **exclude** - Exclude files
**Note:** For more options, see '[HTMLMinifier](https://github.com/kangax/html-minifier)' **Note:** For more options, see '[HTMLMinifier](https://github.com/kangax/html-minifier)'
---------- ----------
@ -46,26 +46,24 @@ neat_css:
- '*.min.css' - '*.min.css'
``` ```
- **enable** - Enable the plugin. Defaults to `true`. - **enable** - Enable the plugin. Defaults to `true`.
- **logger** - Print log switch. Defaults to `true`. - **logger** - Verbose output. Defaults to `false`.
- **exclude**: Exclude files - **exclude** - Exclude files
---------- ----------
``` yaml ``` yaml
neat_js: neat_js:
enable: true enable: true
mangle: true
output:
compress:
exclude: exclude:
- '*.min.js' - '*.min.js'
``` ```
- **enable** - Enable the plugin. Defaults to `true`. - **enable** - Enable the plugin. Defaults to `true`.
- **mangle**: Mangle file names - **mangle** - Mangle file names. Defaults to `true`.
- **logger** - Print log switch. Defaults to `true`. - **logger** - Verbose output. Defaults to `false`.
- **output**: Output options - **output** - Output options
- **compress**: Compress options - **compress** - Compress options
- **exclude**: Exclude files - **exclude** - Exclude files
**Note:** For more options, see '[UglifyJS](https://github.com/mishoo/UglifyJS2)' **Note:** For more options, see '[UglifyJS](https://github.com/mishoo/UglifyJS2)'
---------- ----------
@ -75,7 +73,7 @@ neat_gzip:
enable: true enable: true
``` ```
- **enable** - Enable the plugin. Defaults to `true`. - **enable** - Enable the plugin. Defaults to `true`.
- **logger** - Print log switch. Defaults to `true`. - **logger** - Verbose output. Defaults to `false`.
---------- ----------
@ -84,7 +82,7 @@ neat_brotli:
enable: true enable: true
``` ```
- **enable** - Enable the plugin. Defaults to `true`. - **enable** - Enable the plugin. Defaults to `true`.
- **logger** - Print log switch. Defaults to `true`. - **logger** - Verbose output. Defaults to `false`.
## Credits ## Credits
All credits go to the following work: All credits go to the following work:

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "hexo-yam", "name": "hexo-yam",
"version": "1.0.0", "version": "1.0.1",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,7 +1,7 @@
{ {
"name": "hexo-yam", "name": "hexo-yam",
"description": "Yet Another Minifier. Minify and compress html, js and css", "description": "Yet Another Minifier. Minify and compress html, js and css",
"version": "1.0.0", "version": "1.0.1",
"readme": "README.md", "readme": "README.md",
"main": "index.js", "main": "index.js",
"directories": { "directories": {