Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit 6b9d4ba

Browse files
committed
v1.1.0
1 parent b7e25f5 commit 6b9d4ba

21 files changed

+76
-31
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ There is support of 3 types of matchers:
2929

3030
1. Glob pattern of file path/name.
3131
2. Media query to match image by size.
32-
3. Function with `path`, `size` and `file` arguments, where `path` is String, `size` is object `{ width, height}` and `file` is instance of `Vinyl`.
32+
3. Function with `path`, `size` and `file` arguments, where `path` is String, `size` is object `{ width, height }` and `file` is instance of `Vinyl`.
3333

3434
#### `Number|Array<Number> rule.width`
3535

@@ -89,6 +89,12 @@ Default:
8989
}
9090
```
9191

92+
#### `Boolean rule.skipOptimization`
93+
94+
Option to skip optimization.
95+
96+
Default: `false`
97+
9298
### `Object options`
9399

94100
Object with common config.
@@ -135,6 +141,12 @@ Default:
135141
}
136142
```
137143

144+
#### `Boolean options.skipOptimization`
145+
146+
Option to skip optimization.
147+
148+
Default: `false`
149+
138150
# Example
139151
[`gulpfile.js`](https://github.com/TrigenSoftware/gulp-srcset/tree/master/example)
140152
```js

example/dist/animation.gif

1.69 MB
Loading

example/dist/favicon.ico

3.56 KB
Binary file not shown.

example/dist/office.jpg

7.86 KB
Loading

example/dist/office.webp

563 KB
Loading

example/dist/office@1280w.jpg

270 KB
Loading

example/dist/office@1280w.webp

196 KB
Loading

example/dist/office@1920w.jpg

491 KB
Loading

example/dist/office@1920w.webp

345 KB
Loading

example/dist/office@320w.jpg

33.5 KB
Loading

0 commit comments

Comments
 (0)