docs(readme): update globOptions

This commit is contained in:
curbengh 2019-08-08 09:08:51 +09:30
parent 5b8549077f
commit b054c0a24b
No known key found for this signature in database
GPG Key ID: 21EA847C35D6E034
1 changed files with 6 additions and 6 deletions

View File

@ -39,7 +39,7 @@ neat_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/).
- **globOptions** - [micromatch options](https://github.com/micromatch/micromatch#options) to customise how glob patterns match files. Defaults to `{ matchBase: true }`.
- **globOptions** - [micromatch options](https://github.com/micromatch/micromatch#options) to customise how glob patterns match files. Defaults to `{ basename: true }`, unless the pattern has a slash.
For more options, see [HTMLMinifier](https://github.com/kangax/html-minifier).
@ -55,7 +55,7 @@ neat_css:
- **logger** - Verbose output. Defaults to `false`.
- **exclude** - Exclude files. Support wildcard pattern.
- **level** - Optimization level. Defaults to `2`.
- **globOptions** - [micromatch options](https://github.com/micromatch/micromatch#options) to customise how glob patterns match files. Defaults to `{ matchBase: true }`.
- **globOptions** - See [`neat_html`](#options).
For more options, see [clean-css](https://github.com/jakubpawlowicz/clean-css).
@ -74,7 +74,7 @@ neat_js:
- **mangle** - Mangle variable names. Defaults to `true`. Pass an object to specify [mangle options](https://github.com/terser-js/terser#mangle-options).
- **output** - Output options.
- To retain comments, `output: {comments: true}`.
- **globOptions** - [micromatch options](https://github.com/micromatch/micromatch#options) to customise how glob patterns match files. Defaults to `{ matchBase: true }`.
- **globOptions** - See [`neat_html`](#options).
For more options, see [Terser](https://github.com/terser-js/terser).
@ -93,7 +93,7 @@ neat_svg:
- Exclude `*.min.svg` by default.
- **plugins** - Plugin options.
- To retain comments, `plugins: [{removeComments: false}]`.
- **globOptions** - [micromatch options](https://github.com/micromatch/micromatch#options) to customise how glob patterns match files. Defaults to `{ matchBase: true }`.
- **globOptions** - See [`neat_html`](#options).
For more options, see [svgo](https://github.com/svg/svgo).
@ -120,7 +120,7 @@ neat_gzip:
- **include** - Include files. Support wildcard pattern.
- Support one-liner, `include: ['*.html','*.css','*.js']`.
- Must include asterisk and single quotes. `.html` is invalid. `'*.html'` is valid.
- **globOptions** - [micromatch options](https://github.com/micromatch/micromatch#options) to customise how glob patterns match files. Defaults to `{ matchBase: true }`.
- **globOptions** - See [`neat_html`](#options).
----------
@ -143,7 +143,7 @@ neat_brotli:
- **enable** - Enable the plugin. Defaults to `true`.
- **logger** - Verbose output. Defaults to `false`.
- **include** - Include files. Support wildcard pattern.
- **globOptions** - [micromatch options](https://github.com/micromatch/micromatch#options) to customise how glob patterns match files. Defaults to `{ matchBase: true }`.
- **globOptions** - See [`neat_html`](#options).
## HTTP Compression
While most modern web browsers [support Brotli](https://www.caniuse.com/#feat=brotli), you also need to consider whether the web/app server, hosting platform, reverse proxy or CDN (whichever relevant to you) support it.