From 9b9f3506b5df4c8306bd56db17656c94703037c3 Mon Sep 17 00:00:00 2001 From: gtuk Date: Fri, 5 Mar 2021 07:38:21 +0100 Subject: [PATCH] Fix the `strip` option (#72) Co-authored-by: Sindre Sorhus --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index c80cb9d..9f290f8 100644 --- a/index.js +++ b/index.js @@ -25,7 +25,10 @@ const imageminPngquant = (options = {}) => input => { if (typeof options.strip !== 'undefined') { ow(options.strip, ow.boolean); - args.push('--strip'); + + if (options.strip) { + args.push('--strip'); + } } if (typeof options.quality !== 'undefined') {