From 7d9182699953200a909a8f7353f24113d5b811f5 Mon Sep 17 00:00:00 2001 From: Guillaume VARA Date: Mon, 23 Dec 2024 09:49:27 +0100 Subject: [PATCH] Fix example --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 879f2df..e1a434f 100644 --- a/readme.md +++ b/readme.md @@ -10,7 +10,7 @@ npm install imagemin-pngquant ### Prerequisites -> **Linux** machines must have the following packages prior to install: `libpng-dev libimagequant-dev` +> **Linux** machines must have the following packages prior to install: `libpng-dev libimagequant-dev` ```sh sudo apt-get -y install libpng-dev libimagequant-dev @@ -20,7 +20,7 @@ sudo apt-get -y install libpng-dev libimagequant-dev ```js import imagemin from 'imagemin'; -import imageminPngquant from 'imagemin-pngquant'; +import { imageminPngquant } from 'imagemin-pngquant'; await imagemin(['images/*.png'], { destination: 'build/images',