@@ -68,13 +68,13 @@ Object with [Sharp configs](http://sharp.readthedocs.io/en/stable/api-output/) f
6868Default:
6969``` js
7070{
71- webp: {
72- quality: 100
73- },
74- jpg: {
75- quality: 100
76- },
77- png: {}
71+ webp: {
72+ quality: 100
73+ },
74+ jpg: {
75+ quality: 100
76+ },
77+ png: {}
7878}
7979```
8080
@@ -85,15 +85,15 @@ Object with [imagemin](https://www.npmjs.com/package/imagemin) plugins for each
8585Default:
8686``` js
8787{
88- webp: webpPlugin ({
89- quality: 100
90- }),
91- jpg: mozJpegPlugin ({
92- quality: 100
93- }),
94- png: zopfliPlugin (),
95- gif: gifLossyPlugin (),
96- svg: svgoPlugin ()
88+ webp: webpPlugin ({
89+ quality: 100
90+ }),
91+ jpg: mozJpegPlugin ({
92+ quality: 100
93+ }),
94+ png: zopfliPlugin (),
95+ gif: gifLossyPlugin (),
96+ svg: svgoPlugin ()
9797}
9898```
9999
@@ -126,13 +126,13 @@ Object with [Sharp configs](http://sharp.readthedocs.io/en/stable/api-output/) f
126126Default:
127127``` js
128128{
129- webp: {
130- quality: 100
131- },
132- jpg: {
133- quality: 100
134- },
135- png: {}
129+ webp: {
130+ quality: 100
131+ },
132+ jpg: {
133+ quality: 100
134+ },
135+ png: {}
136136}
137137```
138138
@@ -143,15 +143,15 @@ Object with [imagemin](https://www.npmjs.com/package/imagemin) plugins for each
143143Default:
144144``` js
145145{
146- webp: webpPlugin ({
147- quality: 100
148- }),
149- jpg: mozJpegPlugin ({
150- quality: 100
151- }),
152- png: zopfliPlugin (),
153- gif: gifLossyPlugin (),
154- svg: svgoPlugin ()
146+ webp: webpPlugin ({
147+ quality: 100
148+ }),
149+ jpg: mozJpegPlugin ({
150+ quality: 100
151+ }),
152+ png: zopfliPlugin (),
153+ gif: gifLossyPlugin (),
154+ svg: svgoPlugin ()
155155}
156156```
157157
@@ -173,13 +173,13 @@ const gulp = require('gulp');
173173const srcset = require (' gulp-srcset' );
174174
175175gulp .task (' images' , () =>
176- gulp .src (' src/*.{jpg,png,gif}' )
177- .pipe (srcset ([{
178- match: ' (min-width: 3000px)' ,
179- width: [1 , 1920 , 1280 , 720 , 560 , 320 ],
180- format: [' jpg' , ' webp' ]
181- }]))
182- .pipe (gulp .dest (' dist' ))
176+ gulp .src (' src/*.{jpg,png,gif}' )
177+ .pipe (srcset ([{
178+ match: ' (min-width: 3000px)' ,
179+ width: [1 , 1920 , 1280 , 720 , 560 , 320 ],
180+ format: [' jpg' , ' webp' ]
181+ }]))
182+ .pipe (gulp .dest (' dist' ))
183183);
184184```
185185
0 commit comments