mirror of https://github.com/curbengh/hexo-yam
				
				
				
			docs(readme): update globOptions
This commit is contained in:
		
							parent
							
								
									5b8549077f
								
							
						
					
					
						commit
						b054c0a24b
					
				
							
								
								
									
										12
									
								
								README.md
								
								
								
								
							
							
						
						
									
										12
									
								
								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`. |   - 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`. |   - `*source.js` also works, but it also excludes `resource.js`. | ||||||
|   - Test glob pattern on the web using [Globtester](http://www.globtester.com/). |   - 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). | For more options, see [HTMLMinifier](https://github.com/kangax/html-minifier). | ||||||
| 
 | 
 | ||||||
|  | @ -55,7 +55,7 @@ neat_css: | ||||||
| - **logger** - Verbose output. Defaults to `false`. | - **logger** - Verbose output. Defaults to `false`. | ||||||
| - **exclude** - Exclude files. Support wildcard pattern. | - **exclude** - Exclude files. Support wildcard pattern. | ||||||
| - **level** - Optimization level. Defaults to `2`. | - **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). | 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). | - **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. | - **output** - Output options. | ||||||
|   - To retain comments, `output: {comments: true}`. |   - 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). | For more options, see [Terser](https://github.com/terser-js/terser). | ||||||
| 
 | 
 | ||||||
|  | @ -93,7 +93,7 @@ neat_svg: | ||||||
|   - Exclude `*.min.svg` by default. |   - Exclude `*.min.svg` by default. | ||||||
| - **plugins** - Plugin options. | - **plugins** - Plugin options. | ||||||
|   - To retain comments, `plugins: [{removeComments: false}]`. |   - 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). | For more options, see [svgo](https://github.com/svg/svgo). | ||||||
| 
 | 
 | ||||||
|  | @ -120,7 +120,7 @@ neat_gzip: | ||||||
| - **include** - Include files. Support wildcard pattern. | - **include** - Include files. Support wildcard pattern. | ||||||
|   - Support one-liner, `include: ['*.html','*.css','*.js']`. |   - Support one-liner, `include: ['*.html','*.css','*.js']`. | ||||||
|   - Must include asterisk and single quotes. `.html` is invalid. `'*.html'` is valid. |   - 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`. | - **enable** - Enable the plugin. Defaults to `true`. | ||||||
| - **logger** - Verbose output. Defaults to `false`. | - **logger** - Verbose output. Defaults to `false`. | ||||||
| - **include** - Include files. Support wildcard pattern. | - **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 | ## 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. | 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. | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue