Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit c1f5835

Browse files
committed
fix(build): build web after client/server is done building
1 parent 5724d6a commit c1f5835

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/build.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ createBuilder(
3030
},
3131
],
3232
async (outfiles) => {
33+
if (web) await exec(`cd ./src/web && vite build ${watch ? '--watch' : ''}`);
34+
3335
const files = await getFiles('dist/web', 'data');
36+
3437
await createFxmanifest({
3538
client_scripts: ['@ox_lib/init.lua', 'src/client/client.lua', outfiles.client],
3639
server_scripts: ['@oxmysql/lib/MySQL.lua', outfiles.server],
@@ -43,5 +46,3 @@ createBuilder(
4346
});
4447
}
4548
);
46-
47-
if (web) await exec(`cd ./src/web && vite build ${watch ? '--watch' : ''}`);

0 commit comments

Comments
 (0)