From 19b0218659f13d8a8a80f828802ed1564818e596 Mon Sep 17 00:00:00 2001 From: Anas WS Date: Thu, 7 Mar 2024 15:46:31 +0530 Subject: [PATCH] fix: optipng module issue on armx64. Also added webp compressor --- internals/webpack/webpack.config.base.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/internals/webpack/webpack.config.base.js b/internals/webpack/webpack.config.base.js index 5fde980..b044933 100644 --- a/internals/webpack/webpack.config.base.js +++ b/internals/webpack/webpack.config.base.js @@ -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 } } }