Skip to content

Commit

Permalink
Fix the strip option (#72)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
gtuk and sindresorhus committed Mar 5, 2021
1 parent 4748814 commit 9b9f350
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Expand Up @@ -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') {
Expand Down

0 comments on commit 9b9f350

Please sign in to comment.