From b054c0a24bc9acd110a52e564059bedaec6e9e57 Mon Sep 17 00:00:00 2001 From: curbengh <43627182+curbengh@users.noreply.github.com> Date: Thu, 8 Aug 2019 09:08:51 +0930 Subject: [PATCH] docs(readme): update globOptions --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c60da9c..bcbd115 100644 --- a/README.md +++ b/README.md @@ -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.