Skip to content

Commit

Permalink
Update API usage
Browse files Browse the repository at this point in the history
  • Loading branch information
1000ch committed Jun 1, 2020
1 parent 6f609da commit 9f3f702
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 imageminMozjpeg = require('imagemin-mozjpeg');

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

0 comments on commit 9f3f702

Please sign in to comment.