You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Optimize images with [imagemin](https://www.npmjs.com/package/imagemin) 🗜
32
-
- Convert images to [modern formats such as WebP](https://developer.mozilla.org/ru/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images#Use_modern_image_formats_boldly) 📸
32
+
- Convert images to [modern formats](https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images#use_modern_image_formats_boldly) such as [WebP](https://developers.google.com/speed/webp) and [AVIF](https://jakearchibald.com/2020/avif-has-landed/) 📸
| match |[Matcher]| There is support of 3 types of matchers:<br>1. Glob pattern of file path;<br>2. Media query to match image by size;<br>3. `(path: string, size: ISize, source: Vinyl) => boolean` function. | all images |
186
-
| format |[SupportedExtension]\|[SupportedExtension]\[\]| Output image(s) formats to convert. | no convert |
187
-
| width | number\|number[]| Output image(s) widths to resize, value less than or equal to 1 will be detected as multiplier. |`[1]`|
186
+
| format |[SupportedExtension]\|[SupportedExtension]\[\]| Output image(s) formats to convert. | no convert |
187
+
| width | number\|number[]| Output image(s) widths to resize, value less than or equal to 1 will be detected as multiplier. |`[1]`|
188
188
| exports |[IExports](#exports-options)| Default exported image description.<br>Also you can pass it through query parameters.<br>Example: `background-image: url(./image.jpg?width=320&format=webp);`|`{}`|
189
189
| only | boolean | Stop trying to match other rules, if this rule is matched. |`false`|
| exports |[IExports](#exports-options)| Default exported image description.<br>Also you can pass it through query parameters.<br>Example: `background-image: url(./image.jpg?width=320&format=webp);`|`{}`|
0 commit comments