Skip to content

Commit

Permalink
Merge pull request #45 from wednesday-solutions/fix-optipng-bin-bug-a…
Browse files Browse the repository at this point in the history
…rm64

fix: optipng module issue on armx64. Also added webp compressor
  • Loading branch information
alichherawalla authored Mar 8, 2024
2 parents 1fa204f + 19b0218 commit ce268a0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion internals/webpack/webpack.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,18 @@ module.exports = (options) => ({
interlaced: false
},
optipng: {
optimizationLevel: 7
enabled: false
// NOTE: optipng is disabled as it causes errors in some Mac M1 & M2 environments
// Try enabling it in your environment by switching the config to:
// enabled: true,
// optimizationLevel: 7
},
pngquant: {
quality: [0.65, 0.9],
speed: 4
},
webp: {
quality: 75
}
}
}
Expand Down

0 comments on commit ce268a0

Please sign in to comment.