Skip to content

Commit

Permalink
fix: optipng module issue on armx64. Also added webp compressor
Browse files Browse the repository at this point in the history
  • Loading branch information
anasnadeemws committed Mar 7, 2024
1 parent 1fa204f commit 19b0218
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 19b0218

Please sign in to comment.