Initial commit — Southwest Roleplay FiveM
This commit is contained in:
30
webpack.client.js
Normal file
30
webpack.client.js
Normal file
@@ -0,0 +1,30 @@
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
entry: './src/client/index.ts',
|
||||
target: 'web',
|
||||
mode: 'development',
|
||||
devtool: 'source-map',
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.tsx?$/,
|
||||
use: {
|
||||
loader: 'ts-loader',
|
||||
options: { configFile: 'tsconfig.client.json' },
|
||||
},
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.tsx', '.ts', '.js'],
|
||||
alias: {
|
||||
shared: path.resolve(__dirname, 'src/shared'),
|
||||
},
|
||||
},
|
||||
output: {
|
||||
filename: 'index.js',
|
||||
path: path.resolve(__dirname, 'dist/client'),
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user