Skip to content

Commit

Permalink
fix(build): build web after client/server is done building
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Nov 2, 2024
1 parent 5724d6a commit c1f5835
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand All @@ -43,5 +46,3 @@ createBuilder(
});
}
);

if (web) await exec(`cd ./src/web && vite build ${watch ? '--watch' : ''}`);

0 comments on commit c1f5835

Please sign in to comment.