Scripts/resources/[cfx-default]/[local]/screenshot-basic/server.config.js
2024-12-29 20:48:41 +01:00

29 lines
660 B
JavaScript

const webpack = require('webpack');
module.exports = {
entry: './src/server/server.ts',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/
}
]
},
// https://github.com/felixge/node-formidable/issues/337#issuecomment-153408479
plugins: [
new webpack.DefinePlugin({ "global.GENTLY": false })
],
optimization: {
minimize: false
},
resolve: {
extensions: [ '.tsx', '.ts', '.js' ]
},
output: {
filename: 'server.js',
path: __dirname + '/dist/'
},
target: 'node'
};