Giter Club home page Giter Club logo

fivem-webpack5's Introduction

Webpack 5 for FiveM

Since cfx archived the cfx-server-data repo, and webpack 4 stuff is incompatible with webpack 5, I decided to put this here. If you looked for it - you know you need it.

Download and Install

Clone the repo into your resources/[system]/[builders] and run npm i or any other package manager command to install the dependencies (for some reason fxserver didn't install them for me here)

Usage

Add this to your server.cfg somewhere early, preferably next to default webpack

ensure webpack5

In YOUR RESOURCE (don't go around changing it in random resources that don't need it!), replace this:

dependencies {
    'yarn',
    'webpack'
}

webpack_config 'webpack.prod.js'

With this:

dependencies {
    'yarn',
    'webpack5'
}

webpack5_config 'webpack.prod.js'

Now your resource should be built with webpack 5.75.0

Keep in mind FXServer is limited to fork of Node.js 16.9 so you WILL run into dependency issues when installing the latest and greatest stuff that might depend on Node.js 16.10+

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.