Start working on RAGEMP compatibility

This commit is contained in:
Vortrex
2022-01-19 13:04:45 -06:00
parent b968db40fd
commit 693fac45bd
3 changed files with 138 additions and 0 deletions

19
webpack.config.js Normal file
View File

@@ -0,0 +1,19 @@
const path = require('path');
const nodeExternals = require('webpack-node-externals');
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = {
resolve: {
extensions: ['.js',]
},
entry: {
'packages/connectedrp': './scripts/server',
'client_packages': './scripts/client',
},
output: {
path: path.resolve(__dirname),
filename: '[name]/index.js'
},
target: 'es6', // in order to ignore built-in modules like path, fs, etc.
externals: [nodeExternals()], // in order to ignore all modules in node_modules folder
};