From cd1ae77d30b4b02332e1cc334e4bd0f0efa6b634 Mon Sep 17 00:00:00 2001 From: Zoey Li <31378877+alicialics@users.noreply.github.com> Date: Thu, 19 Oct 2023 19:12:20 +0000 Subject: [PATCH 1/2] fix: bundle blockly test images in block-test plugin --- plugins/block-test/media/200px.png | Bin 0 -> 1709 bytes plugins/block-test/media/30px.png | Bin 0 -> 683 bytes plugins/block-test/media/arrow.png | Bin 0 -> 363 bytes plugins/block-test/package.json | 6 ++++-- plugins/block-test/src/fields/images.js | 6 +++--- 5 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 plugins/block-test/media/200px.png create mode 100644 plugins/block-test/media/30px.png create mode 100644 plugins/block-test/media/arrow.png diff --git a/plugins/block-test/media/200px.png b/plugins/block-test/media/200px.png new file mode 100644 index 0000000000000000000000000000000000000000..8671954e8c5e8f1cd08b3f241ed34b3957af5a90 GIT binary patch literal 1709 zcmZ`(dpy$%6#tQ;A-Nu97V=1unb%_Um@He`G=^qnG>?$?lu`1Q<# zx2=>{$o1H|9_isRMk&o(*ZujFTm5nWIN$R*kMB9>pYu&QOt6)OKp_AC$l|az4xn#Z zF)0ZUC5hfjpp)=HosGg`S|v_2S14g&ybg%uM6SUH=)q$C}O$4I_kzexdVbVq67 zApoqsiL*hIB6>gcxBJ7qV2z*UoOdO;nfl)DJZPALm(jefgI-eT=AW<1i`;=B`e{8E zVxUlwyA_FPeGsmk?`j>LTQ;<@!vX!tFP?b<&noOWY2=%uR$G!r&jOKn|&6qDU7BEbTG_xf?|SQ^?!uP$Wn;k`2r%i%508^iBZ zXcQ6w1&MA3&uxA)JC%N}JB!~E z8Pqf8y@;ED*`Zh?hMcpqTCrM0?cjuM2;ZSJyKMYG#!u3SzIb3FkRc5Urdk9?T_!B z?4OKzIc6^?8uEpxPCEp0PwgCiU~D$~aujcXV(X|dRdr^9oT(+dgQcVByxs;3Q*}?H zLE_O@W6W8re1)3Q>#p5v1bY2dq9>i5EsEwxPf==OA2E&9InR>}kkxLHeZ$5Ln{b)ZW=P~8)K+DOi7nveUdzUgN zf^(%0oK;jtQ?$ggRUS`S+Xfa0n~V9a^~zs|`viLR>|EQl^{DuI!^gNS(&ew!Q;b)~Ma*+?Wwi zxiCL|mVOZFnqRlV!jbEUuGo)5SL7n*CSycHRPI>RS5m`k}^5!q(R zMO0^52#)Jrh*Alk11Hfbf=UDHW0w}85OXY={ zALDrUdy$)^eD^&C#3aCXT?KLQdx4)}wXoWfuu^4{sLD0RD9)K}oM;3*eK?6Wk*$*( z;)ybXS-RtVU}U^v6GX$U4*88WD%DApSlROK)=SKmZ`)idWZ>KMGgHJ>Bn$MP(4IZ? zugz=_c=TYmJ-8H;$uoyhUNZ*cWLM5v(GhU#FPDHv{CxIz(fQHxO@4l~d>;VmIdO5P z{RKPaChZl(&UXnTT#t(HgV>i0`i7*4{YU#*#K0-5;lu=jtLNbn?NnE{R4j1`!DX&0 zNS%G|oWRD45bDP46hOx7_4S6Fo+k-*%fF5lweBoc6VX;-`;;_Kaj^+ z;1OBOz`!jG!i)^F=12eq*-JcqUD+RTiVI5_t`PmTje&u2o~Mgrh{frxS2tz{2Z|j3 zc)t2&cG$w+t%d$Oc)0g-Od9L1$+K-fc1-V$67lueLF zSM|bsQOwnCZ}#3e`E+jo%xU4*0*w>}7A{z=lYc8>+9UCp9Zho-8pSsyEDY3nHS0(R zhwv^j!&!E3If|`nrJZGqJ0}$xtGXwZR)2eYJ6JqhW2toxOLmg^qOADC{8j%o zmo3=OIDbLP`iX+9g22dAEpd$~Nl7e8wMs5Z1yT$~28I^829~-;#vz85Rz_x4CYIU; n237_J`?jwXL(!0%pOTqYiCe?@SAwg68W=oX{an^LB{Ts5%25lC literal 0 HcmV?d00001 diff --git a/plugins/block-test/media/arrow.png b/plugins/block-test/media/arrow.png new file mode 100644 index 0000000000000000000000000000000000000000..d310bd2a61b2eb23f2bf634edc049b4861903e47 GIT binary patch literal 363 zcmeAS@N?(olHy`uVBq!ia0vp^Mj*_=1|;R|J2nC-_7YEDSN2CdvSOmrp$nPi(P~@1Wi(^Q|oVQmD`C1GFoCDw0ztmx!(#>+? z-{B0da*v<>jyJDGMYlg>WR~>!_>=!e|BvndjzKf-T%B!b*dZ<4YGGK|!QJd2Bf+!i z*a87nw)PbU7EY}P8MS!i)*pKC5J;^(^xz+3FP}E63F$5Es*V#SRm6PhX(?pOsyJ%5-z Date: Sat, 21 Oct 2023 16:44:41 +0000 Subject: [PATCH 2/2] fix webpack publicPath --- plugins/dev-scripts/config/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dev-scripts/config/webpack.config.js b/plugins/dev-scripts/config/webpack.config.js index d1a8726910..e3044816ab 100644 --- a/plugins/dev-scripts/config/webpack.config.js +++ b/plugins/dev-scripts/config/webpack.config.js @@ -74,7 +74,7 @@ module.exports = (env) => { devtool: isProduction ? 'source-map' : 'eval-source-map', output: { path: isProduction ? resolveApp('dist') : resolveApp('build'), - publicPath: isProduction ? '/dist/' : '/build/', + publicPath: isProduction ? 'auto' : '/build/', filename: outputFile, libraryTarget: 'umd', globalObject: 'this',