-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathwebpack.config.js
45 lines (44 loc) · 1.02 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
const path = require('path');
module.exports = {
mode: "development",
target: 'node',
entry: {
app: './src/index.ts',
syncModels: './src/syncModels.ts',
dumpAll: './src/dumpAll.ts',
},
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: path.resolve(__dirname, 'node_modules'),
},
{
test: /README$/,
use: 'null-loader',
},
{
test: /\.(cs|html)$/,
use: 'null-loader',
}
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js', '.json'],
},
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'build'),
},
watch: true,
watchOptions: {
aggregateTimeout: 200,
poll: 1000,
ignored: /node_modules/
},
externals: {
fsevents: "require('fsevents')",
electron: "require('electron')",
}
};