forked from Seregfaroth/REEEMgame-local
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
65 lines (61 loc) · 1.92 KB
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
"use strict";
var nodeExternals = require('webpack-node-externals');
module.exports = [{
entry: {
connectBundle: __dirname + "/public/express-publicDev/clientTypescript/ClientControl/connection.ts",
facilitatorBundle: __dirname + "/public/express-publicDev/clientTypescript/Facilitator.ts",
facilitatorMainBundle: __dirname + "/public/express-publicDev/clientTypescript/ClientControl/FacilitatorMainScreenController.ts",
listOfWorldsUpdaterBundle: __dirname + "/public/express-publicDev/clientTypescript/ClientControl/ListOfWorldsUpdater.ts",
connectionMainBundle: __dirname + "/public/express-publicDev/clientTypescript/ClientControl/MainScreenConnection.ts",
},
output: {
filename: "./public/express-publicDev/dist/[name].js",
library: '[name]'
},
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx']
},
devtool: 'source-map',
module: {
loaders: [
{
test: /\.tsx?$/,
loader: ['babel-loader', 'awesome-typescript-loader'],
//loader: ['awesome-typescript-loader'],
exclude: /node-modules/
},
{
test: /\.jsx?$/,
loader: ["babel-loader"],
exclude: /node-modules/
}
]
},
externals: {
}
//node: {
// fs: 'empty'
//}
}, {
entry: __dirname + "/app2.ts",
output: { filename: "./REEEMgame.js" },
target: 'node',
externals: [nodeExternals()],
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx']
},
module: {
loaders: [
{
test: /\.tsx?$/,
loader: ['babel-loader', 'awesome-typescript-loader'],
//loader: ['awesome-typescript-loader'],
exclude: /node-modules/
}
]
},
node: {
__dirname: true
}
}
];