Start working on RAGEMP compatibility
This commit is contained in:
19
webpack.config.js
Normal file
19
webpack.config.js
Normal 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
|
||||
};
|
||||
Reference in New Issue
Block a user