From 9f3f702b44a85e546c57ed0e1044fade757abd00 Mon Sep 17 00:00:00 2001 From: 1000ch Date: Mon, 1 Jun 2020 21:43:47 +0900 Subject: [PATCH] Update API usage --- readme.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 1007910..7015275 100644 --- a/readme.md +++ b/readme.md @@ -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() ] });