Skip to content

Commit

Permalink
docs: more glob pattern examples, fix Terser link and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
weyusi committed Apr 23, 2019
1 parent 5a5a6fb commit b93e92b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ neat_html:
```
- **enable** - Enable the plugin. Defaults to `true`.
- **logger** - Verbose output. Defaults to `false`.
- **exclude** - Exclude files. Support [wildcard](https://github.com/micromatch/nanomatch#features) pattern.
- **exclude** - Exclude files. Support [wildcard](https://github.com/micromatch/nanomatch#features) glob pattern.
- It can be specified as a one-liner, `[*.min.html, *.note.html]`.
- To exclude a file, double asterisk and the full path must be specified, `**/themes/typing/source/js/source.js`.
- `*source.js` also works, but it also excludes `resource.js`.
- Test glob pattern on the web using [Globtester](http://www.globtester.com/).

For more options, see [HTMLMinifier](https://github.com/kangax/html-minifier).

Expand All @@ -50,7 +54,7 @@ neat_css:
```
- **enable** - Enable the plugin. Defaults to `true`.
- **logger** - Verbose output. Defaults to `false`.
- **exclude** - Exclude files. Support wilcard pattern.
- **exclude** - Exclude files. Support wildcard pattern.

----------

Expand All @@ -65,9 +69,9 @@ neat_js:
- **logger** - Verbose output. Defaults to `false`.
- **output** - Output options
- **compress** - Compress options
- **exclude** - Exclude files. Support wilcard pattern.
- **exclude** - Exclude files. Support wildcard pattern.

For more options, see [UglifyJS](https://github.com/mishoo/UglifyJS2).
For more options, see [Terser](https://github.com/terser-js/terser).

----------

Expand Down

0 comments on commit b93e92b

Please sign in to comment.