Skip to content

Commit

Permalink
Update code example (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
urakozz authored Jun 1, 2020
1 parent 90977fe commit 59dce34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ const imagemin = require('imagemin');
const imageminWebp = require('imagemin-webp');

(async () => {
await imagemin(['images/*.{jpg,png}'], 'build/images', {
use: [
await imagemin(['images/*.{jpg,png}'], {
destination: 'build/images',
plugins: [
imageminWebp({quality: 50})
]
});
Expand Down

0 comments on commit 59dce34

Please sign in to comment.