From c1f58357e485ab80193d5cdd449d9fa6c17759fe Mon Sep 17 00:00:00 2001 From: Luke <39926192+LukeWasTakenn@users.noreply.github.com> Date: Sat, 2 Nov 2024 13:36:15 +0100 Subject: [PATCH] fix(build): build web after client/server is done building --- scripts/build.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/build.js b/scripts/build.js index 773a2f4..864305b 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -30,7 +30,10 @@ createBuilder( }, ], async (outfiles) => { + if (web) await exec(`cd ./src/web && vite build ${watch ? '--watch' : ''}`); + const files = await getFiles('dist/web', 'data'); + await createFxmanifest({ client_scripts: ['@ox_lib/init.lua', 'src/client/client.lua', outfiles.client], server_scripts: ['@oxmysql/lib/MySQL.lua', outfiles.server], @@ -43,5 +46,3 @@ createBuilder( }); } ); - -if (web) await exec(`cd ./src/web && vite build ${watch ? '--watch' : ''}`);