From cee43f8d0e51f27bcd23e6ca301eb96bdcedb1aa Mon Sep 17 00:00:00 2001 From: Andrea Leardini Date: Wed, 3 Jul 2024 14:54:55 +0200 Subject: [PATCH] fix: ensure logo image is generated By default vue-cli-service does not generate images smaller than 4KB but replaces them with inline base64. This change ensures that image files are always generated, regardless of their size. --- ui/src/assets/module_default_logo.png | Bin 9651 -> 7653 bytes ui/vue.config.js | 11 +++++++++++ 2 files changed, 11 insertions(+) diff --git a/ui/src/assets/module_default_logo.png b/ui/src/assets/module_default_logo.png index 3b8b7a6598d39a8667a91a219b020da1fd850b0e..bc282a81fe9cd763d0e141fd7086bca00154bf6f 100644 GIT binary patch delta 4363 zcmb_cXE5C1xBe}{Mv2~1SgV&!wy}#~$!gI>2qD6jAZm!!ch%@6N+O98qSr)1qDM$W zbb=rxM6?yXyZ$qG?w31rKixB@%sg}EInR0DcitLseL+066sZ@a89# z_MZSVoMc1Wt!F2tEx_W2kGTT{;(5=5?CeT{`1pI0AS6F$G649ExtVJ6e1L!(_hZ#H zLHs#{Cq9K5^Xm;l#rl5#w-fxmSLQ0Z*zcw7AztM8(gBj^kld-Nlc&2e`t72mdML#Lg}9 z)_$n!^|BT3yT3H9MhFaSr#_zl*(%aiP5|6>&s#~nLq%z&LXw>BraMPP9*hq}>@zI1 zTMMpk5;Xw;6z+WGimCpUEB{$1wT_3E3gu@}jm8p-jeYy%65p_D7jwBpT3#@`co-(d zp&uKU|I@~EmGE-m=S+E7co_s7Lc^+JW$X1~jty90j+e13pBe&_8Yr~ha%A^{KJdi- zX{LpF*Q`}Xue=r*8jmd`k%heUC*V6h!tcb)^T9E13>a>6&;VukLlDq9Cz9 zFTeW7)mT>4Y^m+CeK-|N%3MV2rnEsbAes?jDsshbI`NiSd~CvFCVM-&wk`OJk+%Hs zdkVSC9IqBxj>D%WY&uHxFHvQmF$LJ4|3hF0FEdm`{R$FQHC|)_t20^!e6qjGP?Pfl zqhhlG7W%<_u~PNPD;C=o;Dbq&>(@%Y7qWbD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^;8uETNl zuWC*4ndvNWbfHgdz)o!>ug2RuGZ}OU*qI3IPYx5@M}Bv9YXbzb)CCVImVhfS&WVo* zAwRS_2M>>l0EI4>jVE{)1SBu>#5idFm>iq~dU%SoouWJ4hY$Rv1xfy!yAJ(tvj6i4 bYo2DML`ZAOSi%|jAGn5!j&il4b>x2m$%IGh diff --git a/ui/vue.config.js b/ui/vue.config.js index 20f9687..2b81b13 100644 --- a/ui/vue.config.js +++ b/ui/vue.config.js @@ -8,4 +8,15 @@ module.exports = { }, }, }, + chainWebpack: (config) => { + config.module + .rule("images") + .use("url-loader") + .loader("url-loader") + .tap((options) => { + // Do not base64 encode images URLs. Needed to always generate module logo image + options.limit = -1; + return options; + }); + }, };