Skip to content

BaTzzFR/fivem-esbuild

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

FiveM - esbuild

Builds resources with esbuild. It does not replace resources using Webpack (example: chat). needs yarn to install the necessary dependencies. Esbuild can work in perfect harmony with webpack. To learn more: https://esbuild.github.io/

How to use

  • Create an server.config.js, client.config.js or the name you prefer and change the values.
module.exports = {
    entryPoints: ['main.ts'],
    bundle: true,
    outfile: 'dist/client.js',
};
  • And on your fxmanifest.lua file, add this line of code.
esbuild_config 'server.config.js'